From 9b2ab583f7b8c5362accf3a874dd3bae0e4ea6ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Varga?= Date: Sat, 30 Nov 2024 17:21:13 +0100 Subject: [PATCH] build: Add optimization-minimize flag to scripts for production Enhanced `build` and `start` scripts in `package.json` by adding the `--optimization-minimize` flag to ensure assets are minified during production builds and server runs. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4de0130..e0d7b67 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "Personal website and portfolio", "main": "src/index.html", "scripts": { - "build": "webpack --mode production --config webpack.config.js", - "start": "npx webpack serve --mode production --config webpack.config.js --stats verbose" + "build": "webpack --mode production --optimization-minimize --config webpack.config.js", + "start": "npx webpack serve --mode production --optimization-minimize --config webpack.config.js --stats verbose" }, "repository": { "type": "git",