Skip to content
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

Webpack 3 fails on watch with cache being a function #147

Closed
guidobouman opened this issue Jul 10, 2017 · 2 comments · Fixed by #150
Closed

Webpack 3 fails on watch with cache being a function #147

guidobouman opened this issue Jul 10, 2017 · 2 comments · Fixed by #150

Comments

@guidobouman
Copy link

Expected Behavior

When running grunt-webpack in watch mode it should not crash.

Current Behavior

When running grunt-webpack in watch mode the cache function in the defaults is not properly executed before being passed to webpack. Resulting in an invalid function ending up in the webpack config.

Possible Solution

Execute all defaults functions before outputting the config to webpack.

Context

Production builds are fine, but I can't run watch build right now. Crippling my development experience.

Your Environment

software version
webpack 3.1.0
grunt-webpack 3.0.1
grunt 0.4.5
node 8.1.3
npm 5.1.0
Operating System macOS 10.12.5
@guidobouman
Copy link
Author

Workaround: Add cache: true along with watch: true, effectively defeating your config extensions.

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

Successfully merging a pull request may close this issue.

1 participant