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

Fixing support for webpack-dev-server v4 #899

Merged
merged 1 commit into from
Jan 28, 2021

Conversation

weaverryan
Copy link
Member

Fixes #893

@@ -42,7 +42,6 @@ module.exports = function(argv, cwd) {

runtimeConfig.useDevServer = true;
runtimeConfig.devServerHttps = argv.https;
runtimeConfig.useHotModuleReplacement = argv.hot || false;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hot now defaults to true. So there is no option at the command line and no need for us to set anything.

compress: true,
historyApiFallback: true,
watchOptions: this.buildWatchOptionsConfig(),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now lives under static.watch. However, it automatically reads the root-level watchOptions config and uses that as its defaults - https://github.com/webpack/webpack-dev-server/blob/788f2ba7d9152610ba0d3024f0079c98aad86991/lib/utils/normalizeOptions.js#L9-L23 - so we don't need to re-set the options here also.

lib/config-generator.js Outdated Show resolved Hide resolved
@weaverryan weaverryan merged commit 7919f8f into symfony:main Jan 28, 2021
@weaverryan weaverryan deleted the fixing-dev-server-v4 branch January 28, 2021 15:51
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 this pull request may close these issues.

Update to Encore 1.0 dev-server failed
2 participants