prepare dependencies

This commit is contained in:
Sergio Crisostomo 2018-03-21 12:52:12 +00:00
parent c45f05dd43
commit aaa96346f4
4 changed files with 103 additions and 9 deletions

View file

@ -1,6 +1,8 @@
const path = require('path');
const webpack = require('webpack');
const entry = require('./locale');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
process.env.NODE_ENV = 'production';
module.exports = {
@ -40,7 +42,7 @@ module.exports = {
NODE_ENV: '"production"'
}
}),
new webpack.optimize.UglifyJsPlugin({
new UglifyJsPlugin({
parallel: true,
sourceMap: true,
})