diff --git a/package.json b/package.json index b48b00d..12af301 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "scripts": { "prettier": "prettier ./src --write", "test": "npx jest", - "build": "webpack", - "watch": "webpack --watch" + "build": "webpack --mode=production", + "watch": "webpack --watch --mode=development" }, "repository": { "type": "git", diff --git a/webpack.config.js b/webpack.config.js index 9a0d5bd..f2a1d18 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,7 +2,6 @@ const path = require('path'); module.exports = { entry: './src/index.ts', - mode: "development", module: { rules: [ {