cicd: disable hmr on production
This commit is contained in:
parent
f14f9a64dc
commit
0f970d6aeb
@ -8,7 +8,7 @@ const options = {
|
|||||||
outFile: 'index.html',
|
outFile: 'index.html',
|
||||||
publicUrl: '/',
|
publicUrl: '/',
|
||||||
watch: process.env.NODE_ENV !== 'production',
|
watch: process.env.NODE_ENV !== 'production',
|
||||||
cache: true,
|
cache: process.env.NODE_ENV !== 'production',
|
||||||
cacheDir: '.cache',
|
cacheDir: '.cache',
|
||||||
contentHash: false,
|
contentHash: false,
|
||||||
minify: process.env.NODE_ENV === 'production',
|
minify: process.env.NODE_ENV === 'production',
|
||||||
@ -17,7 +17,7 @@ const options = {
|
|||||||
bundleNodeModules: false,
|
bundleNodeModules: false,
|
||||||
https: true,
|
https: true,
|
||||||
logLevel: 3,
|
logLevel: 3,
|
||||||
hmr: true,
|
hmr: process.env.NODE_ENV !== 'production',
|
||||||
hmrPort: 1235,
|
hmrPort: 1235,
|
||||||
sourceMaps: true,
|
sourceMaps: true,
|
||||||
hmrHostname: '',
|
hmrHostname: '',
|
||||||
|
Loading…
Reference in New Issue
Block a user