Skip to content

Commit d165c1c

Browse files
authored
build: Add optimization-minimize flag to scripts for production (#62)
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.
1 parent 6f1d28d commit d165c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "Personal website and portfolio",
55
"main": "src/index.html",
66
"scripts": {
7-
"build": "webpack --mode production --config webpack.config.js",
8-
"start": "npx webpack serve --mode production --config webpack.config.js --stats verbose"
7+
"build": "webpack --mode production --optimization-minimize --config webpack.config.js",
8+
"start": "npx webpack serve --mode production --optimization-minimize --config webpack.config.js --stats verbose"
99
},
1010
"repository": {
1111
"type": "git",

0 commit comments

Comments
 (0)