Skip to content
Snippets Groups Projects
Commit 0f970d6a authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files

cicd: disable hmr on production

parent f14f9a64
No related branches found
No related tags found
1 merge request!242Project clean up
Pipeline #8909 passed
...@@ -8,7 +8,7 @@ const options = { ...@@ -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 = { ...@@ -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: '',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment