From b3c5b26f03104375ddc33bb38a0217107831b4d4 Mon Sep 17 00:00:00 2001 From: Balaji Sivasakthi Date: Wed, 7 Feb 2024 00:55:08 +0530 Subject: [PATCH] chore: updated script for watch and build (#19) using `--mode` option --- package.json | 4 ++-- webpack.config.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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: [ {