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

Watch config #35

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

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Member

weaverryan commented Jun 20, 2017

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!

@weaverryan weaverryan closed this Jun 20, 2017

@julienj

This comment has been minimized.

Copy link
Contributor

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