hash JS bundle for production

This commit is contained in:
Henning Jacobs
2016-12-19 22:38:41 +01:00
parent 9d46ac1a92
commit c62316b8a2
3 changed files with 13 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ module.exports = {
output: {
path: path.resolve(pkg.config.buildDir),
publicPath: DEBUG ? "/" : "./",
filename: "app.js"
filename: DEBUG ? 'app.js' : 'app-[hash].js'
},
node: {
fs: 'empty'
@@ -33,4 +33,4 @@ module.exports = {
loader: 'transform?brfs'
}]
}
};
};