Add bundle analyzer to webpack behind env variable (#2330)

This commit is contained in:
Aakansha Doshi 2020-11-05 01:08:16 +05:30 committed by GitHub
parent 455badb23e
commit dcedd17f57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 619 additions and 14 deletions

View file

@ -44,12 +44,14 @@
"file-loader": "6.0.0",
"ts-loader": "7.0.0",
"webpack": "4.42.0",
"webpack-bundle-analyzer": "3.9.0",
"webpack-cli": "3.3.11"
},
"bugs": "https://github.com/excalidraw/excalidraw/issues",
"repository": "https://github.com/excalidraw/excalidraw",
"scripts": {
"build:umd": "cross-env NODE_ENV=production webpack --config webpack.prod.config.js",
"build:umd:withAnalyzer": "cross-env NODE_ENV=production ANALYZER=true webpack --config webpack.prod.config.js",
"pack": "npm run build:umd && npm pack"
}
}