[config.webpack] now works with real hashes

This commit is contained in:
xdrm-brackets 2018-03-15 12:46:16 +01:00
parent dbe4599003
commit a5f68b2021
1 changed files with 6 additions and 6 deletions

View File

@ -43,7 +43,7 @@ module.exports = [ {
output: {
path: path.resolve(__dirname, './public_html/js/bundle'),
publicPath: '/js/bundle/',
filename: 'home@0.js'
filename: 'home@[hash].js'
},
module: mod_common,
devtool: (process.env.NODE_ENV==='development') ? '#eval-source-map' : false
@ -55,7 +55,7 @@ module.exports = [ {
output: {
path: path.resolve(__dirname, './public_html/js/bundle'),
publicPath: '/js/bundle/',
filename: 'teacher@0.js'
filename: 'teacher@[hash].js'
},
module: mod_common,
devtool: (process.env.NODE_ENV==='development') ? '#eval-source-map' : false
@ -67,7 +67,7 @@ module.exports = [ {
output: {
path: path.resolve(__dirname, './public_html/js/bundle'),
publicPath: '/js/bundle/',
filename: 'ue@0.js'
filename: 'ue@[hash].js'
},
module: mod_common,
devtool: (process.env.NODE_ENV==='development') ? '#eval-source-map' : false
@ -79,7 +79,7 @@ module.exports = [ {
output: {
path: path.resolve(__dirname, './public_html/js/bundle'),
publicPath: '/js/bundle/',
filename: 'fiche@0.js'
filename: 'fiche@[hash].js'
},
module: mod_common,
devtool: (process.env.NODE_ENV==='development') ? '#eval-source-map' : false
@ -91,7 +91,7 @@ module.exports = [ {
output: {
path: path.resolve(__dirname, './public_html/js/bundle'),
publicPath: '/js/bundle/',
filename: 'settings@0.js'
filename: 'settings@[hash].js'
},
module: mod_common,
devtool: (process.env.NODE_ENV==='development') ? '#eval-source-map' : false
@ -103,7 +103,7 @@ module.exports = [ {
output: {
path: path.resolve(__dirname, './public_html/js/bundle'),
publicPath: '/js/bundle/',
filename: 'login@0.js'
filename: 'login@[hash].js'
},
module: mod_common,
devtool: (process.env.NODE_ENV==='development') ? '#eval-source-map' : false