Prod webpack outputs to minjs dir

This commit is contained in:
Alasdair Smith 2018-03-13 17:44:08 +00:00
parent 408c195c6a
commit 44998c05df

View file

@ -1,3 +1,4 @@
const path = require('path')
const webpack = require('webpack')
const merge = require('webpack-merge')
@ -7,6 +8,11 @@ module.exports = merge(base, {
// Enable a full source map.
devtool: 'source-map',
output: {
// Override output path to minjs dir
path: path.join(__dirname, '/public/minjs/es'),
},
plugins: [
// Use UglifyJS to minimise output
new webpack.optimize.UglifyJsPlugin({