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,
})

View file

@ -3,6 +3,7 @@ const webpack = require('webpack');
const merge = require('webpack-merge');
const webpackBaseConfig = require('./webpack.base.config.js');
const CompressionPlugin = require('compression-webpack-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
process.env.NODE_ENV = 'production';
@ -32,7 +33,7 @@ module.exports = merge(webpackBaseConfig, {
new webpack.DefinePlugin({
'process.env.NODE_ENV': '"production"'
}),
new webpack.optimize.UglifyJsPlugin({
new UglifyJsPlugin({
parallel: true,
sourceMap: true,
}),