Add bootstrap analyzer and optimize build

This commit is contained in:
Chocobozzz
2017-12-20 09:04:52 +01:00
parent 1c6c7699f5
commit 24a8e782d8
9 changed files with 123 additions and 10 deletions

View File

@@ -4,5 +4,5 @@ cd client || exit -1
rm -rf ./dist ./compiled
npm run ng build -- --prod
npm run ng build -- --prod --stats-json
NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js

5
scripts/client-report.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
cd client || exit -1
npm run webpack-bundle-analyzer ./dist/stats.json