Commit 213d7a82 authored by C. T. Lin's avatar C. T. Lin Committed by Arunoda Susiripala

update webpack to v3 (#2349)

* update webpack to v3

* Use exact versions.
parent d2149da5
......@@ -46,7 +46,7 @@
"ansi-html": "0.0.7",
"babel-core": "6.24.0",
"babel-generator": "6.24.1",
"babel-loader": "7.0.0",
"babel-loader": "7.1.0",
"babel-plugin-module-resolver": "2.6.2",
"babel-plugin-react-require": "3.0.0",
"babel-plugin-syntax-dynamic-import": "6.18.0",
......@@ -89,12 +89,13 @@
"strip-ansi": "3.0.1",
"styled-jsx": "1.0.5",
"touch": "1.0.0",
"uglifyjs-webpack-plugin": "0.4.6",
"unfetch": "2.1.2",
"url": "0.11.0",
"uuid": "3.1.0",
"walk": "^2.3.9",
"webpack": "2.6.1",
"webpack-dev-middleware": "1.10.2",
"webpack": "3.0.0",
"webpack-dev-middleware": "1.11.0",
"webpack-hot-middleware": "2.18.0",
"write-file-webpack-plugin": "4.1.0",
"xss-filters": "1.2.7"
......@@ -115,7 +116,6 @@
"coveralls": "2.13.1",
"cross-env": "5.0.1",
"express": "4.15.2",
"taskr": "1.0.5",
"husky": "0.13.3",
"jest-cli": "20.0.4",
"lint-staged": "^3.4.0",
......@@ -125,6 +125,7 @@
"react": "15.5.4",
"react-dom": "15.5.4",
"standard": "9.0.2",
"taskr": "1.0.5",
"wd": "1.2.0"
},
"peerDependencies": {
......
......@@ -5,6 +5,7 @@ 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'
......@@ -123,7 +124,8 @@ export default async function createCompiler (dir, { dev = false, quiet = false,
}),
new PagesPlugin(),
new DynamicChunksPlugin(),
new CaseSensitivePathPlugin()
new CaseSensitivePathPlugin(),
new webpack.optimize.ModuleConcatenationPlugin()
]
if (dev) {
......@@ -141,7 +143,7 @@ export default async function createCompiler (dir, { dev = false, quiet = false,
input: ['manifest.js', 'commons.js', 'main.js'],
output: 'app.js'
}),
new webpack.optimize.UglifyJsPlugin({
new UglifyJsPlugin({
compress: { warnings: false },
sourceMap: false
})
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment