revert: no need of terser

This commit is contained in:
EnixCoda 2019-03-02 23:32:05 +08:00
parent f27ab7a427
commit 356c5afabd
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD
2 changed files with 0 additions and 5 deletions

View file

@ -52,7 +52,6 @@
"less-loader": "^4.0.5",
"react-life-hook": "^0.2.0",
"style-loader": "^0.23.1",
"terser-webpack-plugin": "^1.2.3",
"typescript": "^3.3.3333",
"uglifyjs-webpack-plugin": "^2.1.2",
"url-loader": "^1.1.2",

View file

@ -1,7 +1,6 @@
const webpack = require('webpack')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin');
const path = require('path')
const srcPath = path.resolve(__dirname, 'src')
@ -37,9 +36,6 @@ module.exports = {
entry: {
content: './src/content.tsx',
},
optimization: {
minimizer: IN_PRODUCTION_MODE ? [new TerserPlugin()] : [],
},
mode: IN_PRODUCTION_MODE ? 'production' : 'development',
output: {
path: path.resolve(__dirname, 'dist'),