Skip to content

Commit c32ce43

Browse files
committed
chore: revert to webpack 3
1 parent 9d273d9 commit c32ce43

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.build/webpack.config.umd.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
55

66
module.exports = {
77
entry: "./src",
8-
mode: "production",
98
output: {
109
filename: "prosemirror-dev-tools.min.js",
1110
path: path.resolve(__dirname, "..", "dist", "umd"),
1211
library: "ProseMirrorDevTools",
1312
libraryTarget: "umd"
1413
},
1514
plugins: [
15+
new webpack.optimize.UglifyJsPlugin({
16+
compress: { warnings: false }
17+
}),
1618
new webpack.DefinePlugin({ "process.env.NODE_ENV": '"production"' }),
1719
new BundleAnalyzerPlugin({
1820
analyzerMode: "static",

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,8 @@
7474
"react": "^16.4.1",
7575
"react-dom": "^16.4.1",
7676
"rimraf": "^2.6.2",
77-
"webpack": "^4.16.0",
78-
"webpack-bundle-analyzer": "^2.13.1",
79-
"webpack-cli": "^3.0.8"
77+
"webpack": "^3.9.1",
78+
"webpack-bundle-analyzer": "^2.10.1"
8079
},
8180
"eslintConfig": {
8281
"extends": "./node_modules/aik/lib/eslint-config.js"

0 commit comments

Comments
 (0)