Skip to content

Commit 33589b1

Browse files
Добавил скрипт для анализа бандла (#302)
* Добавил скрипт для анализа бандла * Добавил отдельный скрипт для сбора билда с SourceMap * Добавил запуск analyze:build в скрипт analyze
1 parent a9db8d9 commit 33589b1

File tree

2 files changed

+171
-1
lines changed

2 files changed

+171
-1
lines changed

package-lock.json

Lines changed: 167 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"react-scripts": "5.0.1",
2121
"react-transition-group": "^4.4.2",
2222
"redux-persist": "^6.0.0",
23+
"source-map-explorer": "^2.5.3",
2324
"styled-components": "^5.3.3"
2425
},
2526
"scripts": {
@@ -36,7 +37,9 @@
3637
"build-storybook": "build-storybook",
3738
"prepare": "husky install",
3839
"prettier:check": "prettier . --check",
39-
"prettier": "prettier . --write"
40+
"prettier": "prettier . --write",
41+
"analyze": "npm run analyze:build && source-map-explorer 'build/static/js/*.js'",
42+
"analyze:build": "GENERATE_SOURCEMAP=true react-scripts build"
4043
},
4144
"browserslist": {
4245
"production": [

0 commit comments

Comments
 (0)