Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
julienj opened this issue Jun 19, 2017 · 3 comments
Closed

Watch config #35

julienj opened this issue Jun 19, 2017 · 3 comments

Comments

@julienj
Copy link
Contributor

julienj commented Jun 19, 2017

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

@stof
Copy link
Member

stof commented Jun 20, 2017

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;

@weaverryan
Copy link
Member

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!

@julienj
Copy link
Contributor Author

julienj commented Jun 20, 2017

Thank you
Is a good news

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants