Skip to content

Conversation

@weaverryan
Copy link
Member

Fixes #893


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.

quiet: true,
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.

@weaverryan weaverryan force-pushed the fixing-dev-server-v4 branch from b9a849b to 23a981f Compare January 28, 2021 15:50
@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