Skip to content

Commit efabe34

Browse files
authored
force webpacker-dev-server injectClient setting (#2892)
1 parent f56f8ad commit efabe34

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

lib/install/config/webpacker.yml

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ development:
2525
host: localhost
2626
port: 3035
2727
public: localhost:3035
28+
# Inject browserside javascript that required by both HMR and Live(full) reload
29+
inject_client: true
2830
# Hot Module Replacement updates modules while the application is running without a full reload
2931
hmr: false
3032
# Inline should be set to true if using HMR; it inserts a script to take care of live reloading

package/__tests__/development.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ describe('Development environment', () => {
2222
expect(webpackConfig).toMatchObject({
2323
devServer: {
2424
host: 'localhost',
25-
port: 3035
25+
port: 3035,
26+
injectClient: true
2627
}
2728
})
2829
})

package/environments/development.js

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ if (
3434
hot: devServer.hmr,
3535
contentBase,
3636
inline: devServer.inline,
37+
injectClient: devServer.inject_client,
3738
useLocalIp: devServer.use_local_ip,
3839
public: devServer.public,
3940
publicPath,

0 commit comments

Comments
 (0)