This repository was archived by the owner on Oct 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const path = require('path')
6
6
const { dependencies } = require ( '../package.json' )
7
7
const webpack = require ( 'webpack' )
8
8
9
- const BabiliWebpackPlugin = require ( 'babili- webpack-plugin' )
9
+ const MinifyPlugin = require ( "babel-minify- webpack-plugin" )
10
10
11
11
let mainConfig = {
12
12
entry : {
@@ -75,7 +75,7 @@ if (process.env.NODE_ENV !== 'production') {
75
75
*/
76
76
if ( process . env . NODE_ENV === 'production' ) {
77
77
mainConfig . plugins . push (
78
- new BabiliWebpackPlugin ( ) ,
78
+ new MinifyPlugin ( ) ,
79
79
new webpack . DefinePlugin ( {
80
80
'process.env.NODE_ENV' : '"production"'
81
81
} )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const path = require('path')
6
6
const { dependencies } = require ( '../package.json' )
7
7
const webpack = require ( 'webpack' )
8
8
9
- const BabiliWebpackPlugin = require ( 'babili- webpack-plugin' )
9
+ const MinifyPlugin = require ( "babel-minify- webpack-plugin" )
10
10
const CopyWebpackPlugin = require ( 'copy-webpack-plugin' )
11
11
const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' )
12
12
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' )
@@ -174,7 +174,7 @@ if (process.env.NODE_ENV === 'production') {
174
174
rendererConfig . devtool = ''
175
175
176
176
rendererConfig . plugins . push (
177
- new BabiliWebpackPlugin ( ) ,
177
+ new MinifyPlugin ( ) ,
178
178
new CopyWebpackPlugin ( [
179
179
{
180
180
from : path . join ( __dirname , '../static' ) ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ process.env.BABEL_ENV = 'web'
5
5
const path = require ( 'path' )
6
6
const webpack = require ( 'webpack' )
7
7
8
- const BabiliWebpackPlugin = require ( 'babili- webpack-plugin' )
8
+ const MinifyPlugin = require ( "babel-minify- webpack-plugin" )
9
9
const CopyWebpackPlugin = require ( 'copy-webpack-plugin' )
10
10
const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' )
11
11
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' )
@@ -135,7 +135,7 @@ if (process.env.NODE_ENV === 'production') {
135
135
webConfig . devtool = ''
136
136
137
137
webConfig . plugins . push (
138
- new BabiliWebpackPlugin ( ) ,
138
+ new MinifyPlugin ( ) ,
139
139
new CopyWebpackPlugin ( [
140
140
{
141
141
from : path . join ( __dirname , '../static' ) ,
Original file line number Diff line number Diff line change 87
87
"babel-preset-env" : " ^1.7.0" ,
88
88
"babel-preset-stage-0" : " ^6.24.1" ,
89
89
"babel-register" : " ^6.26.0" ,
90
- "babili- webpack-plugin" : " ^0.1.2 " ,
90
+ "babel-minify- webpack-plugin" : " ^0.3.1 " ,
91
91
"cfonts" : " ^2.1.2" ,
92
92
"chalk" : " ^2.4.1" ,
93
93
"copy-webpack-plugin" : " ^4.5.1" ,
You can’t perform that action at this time.
0 commit comments