We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rollup
browsersync
Browsersync does not work perfectly with rollup out of the box.
We'll need to implement a custom plugin to handle this capability. We'll leverage the one below from the DNN 10 theme Aperture as inspiration.
Aperture
import bs from "browser-sync"; import { Plugin } from "rollup"; const browserSync = bs.create("rollup"); type RollupPluginBrowserSync = (options?: bs.Options) => Plugin; const browsersync: RollupPluginBrowserSync = (browsersyncOptions) => { return { name: "browsersync", writeBundle: function(options){ if (!browserSync.active){ browserSync.init(browsersyncOptions || {server: "."}); } else { browserSync.reload(options.file || ""); } } } }; export default browsersync;
n/a
Thank you to @valadas who wrote the initial version of this custom plugin and that was used as inspiration within the DNN 10 theme Aperture.
The text was updated successfully, but these errors were encountered:
david-poindexter
No branches or pull requests
Is your feature request related to a problem?
Browsersync does not work perfectly with
rollup
out of the box.Describe the solution you'd like
We'll need to implement a custom plugin to handle this capability. We'll leverage the one below from the DNN 10 theme
Aperture
as inspiration.Describe alternatives you've considered
n/a
Additional context
Thank you to @valadas who wrote the initial version of this custom plugin and that was used as inspiration within the DNN 10 theme
Aperture
.The text was updated successfully, but these errors were encountered: