🕚 ⚡️ 🎈 🐀
eleventy-server-browsersync A server plugin to use Browsersync with Eleventy 2.0+.
➡ Documentation: Swap back to Browsersync
- Please star Eleventy on GitHub!
- Follow us on Twitter @eleven_ty
- Support 11ty on Open Collective
- 11ty on npm
- 11ty on GitHub
Installation
npm install @11ty/eleventy-server-browsersync
module.exports = function(eleventyConfig) {
eleventyConfig.setServerOptions({
module: "@11ty/eleventy-server-browsersync",
// Default options shown:
port: 8080,
ignore: ["node_modules"],
watch: false,
open: false,
notify: false,
ui: false,
ghostMode: false,
index: "index.html",
})
};
View the full list of Browsersync options.