mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Remove the extra plugin (#2670)
This commit is contained in:
parent
cc9b1d6ce0
commit
67697afa44
|
@ -91,7 +91,6 @@
|
|||
"strip-ansi": "4.0.0",
|
||||
"styled-jsx": "^1.0.8",
|
||||
"touch": "3.1.0",
|
||||
"uglifyjs-webpack-plugin": "0.4.6",
|
||||
"unfetch": "3.0.0",
|
||||
"url": "0.11.0",
|
||||
"uuid": "3.1.0",
|
||||
|
|
|
@ -5,7 +5,6 @@ import glob from 'glob-promise'
|
|||
import WriteFilePlugin from 'write-file-webpack-plugin'
|
||||
import FriendlyErrorsWebpackPlugin from 'friendly-errors-webpack-plugin'
|
||||
import CaseSensitivePathPlugin from 'case-sensitive-paths-webpack-plugin'
|
||||
import UglifyJsPlugin from 'uglifyjs-webpack-plugin'
|
||||
import UnlinkFilePlugin from './plugins/unlink-file-plugin'
|
||||
import PagesPlugin from './plugins/pages-plugin'
|
||||
import DynamicChunksPlugin from './plugins/dynamic-chunks-plugin'
|
||||
|
@ -150,7 +149,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false,
|
|||
input: ['manifest.js', 'commons.js', 'main.js'],
|
||||
output: 'app.js'
|
||||
}),
|
||||
new UglifyJsPlugin({
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
compress: { warnings: false },
|
||||
sourceMap: false
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue