diff --git a/package.json b/package.json index 4cbd159..183ae9d 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "private": true, "scripts": { "test": "webpack-dev-server --config webpack.dev.js", - "build": "webpack --config webpack.prod.js", + "build": "webpack --config webpack.prod.js -p", "clean": "rm logs/*; rm -rf dist/", "start": "forever start -a -l webhook.log server.js", "stop": "forever stop server.js" @@ -14,7 +14,6 @@ "devDependencies": { "autoprefixer": "^7.1.6", "babel-loader": "^7.1.2", - "babel-minify-webpack-plugin": "^0.2.0", "babel-plugin-transform-class-properties": "^6.24.1", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-env": "^1.6.1", diff --git a/webpack.prod.js b/webpack.prod.js index 8ccd4ef..93e871c 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -1,7 +1,6 @@ const webpack = require("webpack"); const merge = require("webpack-merge"); const common = require("./webpack.common.js"); -const MinifyPlugin = require("babel-minify-webpack-plugin"); const HtmlWebpackPlugin = require("html-webpack-plugin"); module.exports = merge(common, { @@ -12,13 +11,9 @@ module.exports = merge(common, { NODE_ENV: '"production"' // Why double quotes? https://github.com/thgh/vuejs-templates-rollup/issues/1#issuecomment-255096585 } }), - new MinifyPlugin({}, - { - comments: false - }), new HtmlWebpackPlugin({ template: "src/images/favicon/favicon.ico", filename: "favicon.ico" }) ] -}); \ No newline at end of file +});