From 3c40bcee13681b66529978ea336beff077716339 Mon Sep 17 00:00:00 2001 From: EhsanM Date: Wed, 20 Mar 2024 08:37:10 +0330 Subject: [PATCH] feat: [ts-starter #8] add script for bundle size analysis --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 03a5957..7f00e16 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,9 @@ "preinstall": "npx only-allow pnpm", "dev": "webpack serve", "build": "webpack --mode production", - "stats": "webpack --mode production --profile --json > stats.json", - "bundle-analysis": "pnpm stats && pnpm dlx webpack-bundle-analyzer stats.json", + "bundle-stats": "webpack --mode production --profile --json > stats.json", + "show-bundle-analysis": "pnpm dlx webpack-bundle-analyzer stats.json", + "bundle-analysis": "pnpm bundle-stats && pnpm dlx webpack-bundle-analyzer stats.json", "lint": "eslint . --max-warnings=0 --ext js,cjs,mjs,ts,tsx", "typecheck": "tsc --project ./src/tsconfig.json", "format": "prettier --write .", @@ -18,7 +19,6 @@ "test:unit": "jest test/unit", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build" - }, "keywords": [], "author": "",