-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
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
Browsersync double reload #134
Comments
For others who can't seem to get this option working. The double reload occurs when files referenced as public using the To prevent this, ignore the auto generated files all together :) this snippet works for me in fractal.web.set('server.syncOptions', {
watchOptions: {
ignored: path.resolve('dist/**/*'),
},
}); It's important to add the It's a bit mysterious to me why anymatch (used for matching) doesn't match on just |
Do you think it would be a good idea to add
It should be backward compatible for those who already used |
Still need this. |
I have spent the weekend ( nearly all of it ) figuring this out (and bunch of other requirements). I have made a little quick start project that extends the one that is generated by fractal-cli. |
I found out that const slash = require('slash');
fractal.web.set('server.syncOptions', {
watchOptions: {
ignored: [
slash(path.join(__dirname, '../src/**/*.scss')),
slash(path.join(__dirname, '../src/**/*.js')),
]
}
}); |
Double reload occurs when changing an asset file within the components directory that also gets compiled into the public directory. Need a way of filtering out files types to prevent this happening.
The text was updated successfully, but these errors were encountered: