diff --git a/pg-manual/package.json b/pg-manual/package.json index 8cf14e3..40b6912 100644 --- a/pg-manual/package.json +++ b/pg-manual/package.json @@ -30,7 +30,7 @@ "util": "^0.12.5" }, "scripts": { - "build": "webpack", - "dev": "npx webpack serve" + "build": "webpack --mode production", + "dev": "webpack serve --mode development" } } diff --git a/pg-manual/webpack.config.js b/pg-manual/webpack.config.js index 15ebfc5..5af825f 100644 --- a/pg-manual/webpack.config.js +++ b/pg-manual/webpack.config.js @@ -4,11 +4,9 @@ const HtmlWebpackPlugin = require('html-webpack-plugin') const webpack = require('webpack') const dist = path.resolve(__dirname, 'dist') -const webpackMode = 'development' module.exports = { name: 'examples', - mode: webpackMode, entry: { string: './examples/string.js', file: './examples/file.js',