Skip to content

Commit

Permalink
Use babel minifier instead of uglify
Browse files Browse the repository at this point in the history
  • Loading branch information
wbobeirne committed Oct 8, 2017
1 parent 74e5134 commit ccbbcaf
Show file tree
Hide file tree
Showing 3 changed files with 255 additions and 8 deletions.
251 changes: 251 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"@types/uuid": "^3.4.2",
"@types/webpack-env": "^1.13.1",
"awesome-typescript-loader": "^3.2.3",
"babel-minify-webpack-plugin": "^0.2.0",
"bs58": "^4.0.1",
"cache-loader": "^1.0.3",
"check-node-version": "^2.1.0",
Expand Down
11 changes: 3 additions & 8 deletions webpack_config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ process.env.NODE_ENV = 'production';
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ProgressPlugin = require('webpack/lib/ProgressPlugin');
const BabelMinifyPlugin = require('babel-minify-webpack-plugin');
// const OfflinePlugin = require('offline-plugin')
const base = require('./webpack.base');
const config = require('./config');
Expand Down Expand Up @@ -48,14 +49,8 @@ base.plugins.push(
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),
new webpack.optimize.UglifyJsPlugin({
sourceMap: true,
compress: {
warnings: false
},
output: {
comments: false
}
new BabelMinifyPlugin(undefined, {
comments: false
}),
// extract vendor chunks
new webpack.optimize.CommonsChunkPlugin({
Expand Down

0 comments on commit ccbbcaf

Please sign in to comment.