cicd: disable hmr on production

This commit is contained in:
Jean-Baptiste Pasquier 2020-11-28 21:33:51 +00:00
parent f14f9a64dc
commit 0f970d6aeb
1 changed files with 2 additions and 2 deletions

View File

@ -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: '',