-
-
Notifications
You must be signed in to change notification settings - Fork 200
Watch config #35
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
Comments
As Encore is a builder for the webpack config, you can easily alter the final config before exporting it: // webpack.config.js
var Encore = require('@symfony/webpack-encore');
// all Encore config here
var config = Encore.getWebpackConfig();
config.watchOptions = { poll: true, ignored: /node_modules/ };
module.exports = config; |
We should doc this as the official approach of adding "extra" config. I don't think there's any benefit of adding another method on Encore to set things like this. I've opened and issue: symfony/symfony-docs#8067 Thanks! |
Thank you |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
watch option doesn't work with docker machine and nfs.
cf : http://andrewhfarmer.com/webpack-watch-in-vagrant-docker/
How can I add this config
watchOptions: { poll: true }
Thank
The text was updated successfully, but these errors were encountered: