@11ty/eleventy-server-browsersync

1.0.2 • Public • Published

eleventy Logo

eleventy-server-browsersync 🕚⚡️🎈🐀

A server plugin to use Browsersync with Eleventy 2.0+.

Documentation: Swap back to Browsersync

npm Version

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.

Readme

Keywords

Package Sidebar

Install

npm i @11ty/eleventy-server-browsersync

Weekly Downloads

462

Version

1.0.2

License

MIT

Unpacked Size

4.49 kB

Total Files

4

Last publish

Collaborators

  • zachleat