easily integrate
browser-sync
into yourrollup
development flow 🌊
yarn install --dev @rbnlffl/rollup-plugin-browser-sync
import browserSync from "@rbnlffl/rollup-plugin-browser-sync";
export default {
/* rollup config */
plugins: [
/* rollup plugins */
browserSync({ /* options */ })
]
};
be aware that the plugin only works in watch mode
all of the supplied configuration options get directly forwarded to browser-sync
. you can find the official docs here: https://browsersync.io/docs/options