Serve your bundle via Browser Sync
npm install --save-dev rollup-plugin-browsersync
// rollup.config.js
import browsersync from 'rollup-plugin-browsersync'
export default {
input: 'entry.js',
output: {
file: 'bundle.js'
},
plugins: [
browsersync({server: 'dist'})
]
}
See Browsersync options.
By default:
{
server: '.'
}
Contributions and feedback are very welcome.