From a18b4cba2af599bd8fae49831f2ebd98eb89ba24 Mon Sep 17 00:00:00 2001 From: Vadim Malykhin <158365+VadimMalykhin@users.noreply.github.com> Date: Tue, 22 Jan 2019 04:08:25 +0300 Subject: [PATCH] Replace deprecated plugin --- template/.electron-vue/webpack.main.config.js | 4 ++-- template/.electron-vue/webpack.renderer.config.js | 4 ++-- template/.electron-vue/webpack.web.config.js | 4 ++-- template/package.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/template/.electron-vue/webpack.main.config.js b/template/.electron-vue/webpack.main.config.js index 020e060c..d35d6841 100644 --- a/template/.electron-vue/webpack.main.config.js +++ b/template/.electron-vue/webpack.main.config.js @@ -6,7 +6,7 @@ const path = require('path') const { dependencies } = require('../package.json') const webpack = require('webpack') -const BabiliWebpackPlugin = require('babili-webpack-plugin') +const BabelMinifyWebpackPlugin = require('babel-minify-webpack-plugin') let mainConfig = { entry: { @@ -75,7 +75,7 @@ if (process.env.NODE_ENV !== 'production') { */ if (process.env.NODE_ENV === 'production') { mainConfig.plugins.push( - new BabiliWebpackPlugin(), + new BabelMinifyWebpackPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"production"' }) diff --git a/template/.electron-vue/webpack.renderer.config.js b/template/.electron-vue/webpack.renderer.config.js index 35f5870d..75aefb21 100644 --- a/template/.electron-vue/webpack.renderer.config.js +++ b/template/.electron-vue/webpack.renderer.config.js @@ -6,7 +6,7 @@ const path = require('path') const { dependencies } = require('../package.json') const webpack = require('webpack') -const BabiliWebpackPlugin = require('babili-webpack-plugin') +const BabelMinifyWebpackPlugin = require('babel-minify-webpack-plugin') const CopyWebpackPlugin = require('copy-webpack-plugin') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const HtmlWebpackPlugin = require('html-webpack-plugin') @@ -174,7 +174,7 @@ if (process.env.NODE_ENV === 'production') { rendererConfig.devtool = '' rendererConfig.plugins.push( - new BabiliWebpackPlugin(), + new BabelMinifyWebpackPlugin(), new CopyWebpackPlugin([ { from: path.join(__dirname, '../static'), diff --git a/template/.electron-vue/webpack.web.config.js b/template/.electron-vue/webpack.web.config.js index 3b3b2ca8..81c98e4c 100644 --- a/template/.electron-vue/webpack.web.config.js +++ b/template/.electron-vue/webpack.web.config.js @@ -5,7 +5,7 @@ process.env.BABEL_ENV = 'web' const path = require('path') const webpack = require('webpack') -const BabiliWebpackPlugin = require('babili-webpack-plugin') +const BabelMinifyWebpackPlugin = require('babel-minify-webpack-plugin') const CopyWebpackPlugin = require('copy-webpack-plugin') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const HtmlWebpackPlugin = require('html-webpack-plugin') @@ -135,7 +135,7 @@ if (process.env.NODE_ENV === 'production') { webConfig.devtool = '' webConfig.plugins.push( - new BabiliWebpackPlugin(), + new BabelMinifyWebpackPlugin(), new CopyWebpackPlugin([ { from: path.join(__dirname, '../static'), diff --git a/template/package.json b/template/package.json index 3c5472f3..617157c2 100644 --- a/template/package.json +++ b/template/package.json @@ -83,11 +83,11 @@ "ajv": "^6.5.0", "babel-core": "^6.26.3", "babel-loader": "^7.1.4", + "babel-minify-webpack-plugin": "^0.3.1", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-env": "^1.7.0", "babel-preset-stage-0": "^6.24.1", "babel-register": "^6.26.0", - "babili-webpack-plugin": "^0.1.2", "cfonts": "^2.1.2", "chalk": "^2.4.1", "copy-webpack-plugin": "^4.5.1",