0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Added source map explorer for analyzing builds

no refs

`yarn analyze` now launches source map explorer which analyzes the local bundle, helping in keeping Portal size as small as possible.
This commit is contained in:
Rishabh 2021-06-07 15:32:55 +05:30
parent 0b2af14567
commit c45b1abede

View file

@ -38,6 +38,7 @@
"preship": "yarn lint",
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn publish && git push ${GHOST_UPSTREAM:-upstream} main --follow-tags; fi",
"posttest": "yarn lint",
"analyze": "source-map-explorer 'build/static/js/*.js'",
"prepublishOnly": "yarn build"
},
"eslintConfig": {
@ -69,6 +70,7 @@
"ora": "^5.4.0",
"rewire": "5.0.0",
"serve-handler": "^6.1.3",
"source-map-explorer": "^2.5.2",
"webpack-cli": "3.3.12"
}
}