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-dev-server live reload issue fix #2892

Merged
merged 1 commit into from Jan 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/install/config/webpacker.yml
Expand Up @@ -25,6 +25,8 @@ development:
host: localhost
port: 3035
public: localhost:3035
# Inject browserside javascript that required by both HMR and Live(full) reload
inject_client: true
# Hot Module Replacement updates modules while the application is running without a full reload
hmr: false
# Inline should be set to true if using HMR; it inserts a script to take care of live reloading
Expand Down
3 changes: 2 additions & 1 deletion package/__tests__/development.js
Expand Up @@ -22,7 +22,8 @@ describe('Development environment', () => {
expect(webpackConfig).toMatchObject({
devServer: {
host: 'localhost',
port: 3035
port: 3035,
injectClient: true
}
})
})
Expand Down
1 change: 1 addition & 0 deletions package/environments/development.js
Expand Up @@ -34,6 +34,7 @@ if (
hot: devServer.hmr,
contentBase,
inline: devServer.inline,
injectClient: devServer.inject_client,
useLocalIp: devServer.use_local_ip,
public: devServer.public,
publicPath,
Expand Down