Skip to content

Commit

Permalink
fix(build): migrate to babel-minify-webpack-plugin
Browse files Browse the repository at this point in the history
babili-webpack-plugin has been depreciated in favour of
babel-minify-webpack-plugin so update to that.
  • Loading branch information
mrfelton committed Jun 15, 2018
1 parent c872d3b commit 7a44634
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 146 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
"babel-eslint": "^8.2.3",
"babel-jest": "^23.0.1",
"babel-loader": "^7.1.4",
"babel-minify-webpack-plugin": "^0.3.1",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-dev-expression": "^0.2.1",
"babel-plugin-dynamic-import-webpack": "^1.0.2",
Expand All @@ -153,7 +154,6 @@
"babel-preset-react-optimize": "^1.0.1",
"babel-preset-stage-0": "^6.24.1",
"babel-register": "^6.26.0",
"babili-webpack-plugin": "0.1.1",
"browserslist": "^2.11.0",
"chalk": "^2.0.1",
"concurrently": "^3.5.1",
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.main.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import webpack from 'webpack'
import merge from 'webpack-merge'
import BabiliPlugin from 'babili-webpack-plugin'
import MinifyPlugin from 'babel-minify-webpack-plugin'
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'
import baseConfig from './webpack.config.base'
import CheckNodeEnv from './internals/scripts/CheckNodeEnv'
Expand All @@ -28,7 +28,7 @@ export default merge.smart(baseConfig, {
/**
* Babli is an ES6+ aware minifier based on the Babel toolchain (beta)
*/
new BabiliPlugin(),
new MinifyPlugin(),

new BundleAnalyzerPlugin({
analyzerMode: process.env.OPEN_ANALYZER === 'true' ? 'server' : 'disabled',
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.renderer.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import webpack from 'webpack'
import ExtractTextPlugin from 'extract-text-webpack-plugin'
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'
import merge from 'webpack-merge'
import BabiliPlugin from 'babili-webpack-plugin'
import MinifyPlugin from 'babel-minify-webpack-plugin'
import baseConfig from './webpack.config.base'
import CheckNodeEnv from './internals/scripts/CheckNodeEnv'

Expand Down Expand Up @@ -156,7 +156,7 @@ export default merge.smart(baseConfig, {
/**
* Babli is an ES6+ aware minifier based on the Babel toolchain (beta)
*/
new BabiliPlugin(),
new MinifyPlugin(),

new ExtractTextPlugin('style.css'),

Expand Down
Loading

0 comments on commit 7a44634

Please sign in to comment.