Add script to run webpack analyzer

This commit is contained in:
Chocobozzz 2018-11-30 16:05:21 +01:00
parent 8781765fdf
commit 3a0d7396fc
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 4 additions and 2 deletions

View file

@ -7,7 +7,8 @@
"build": "vue-cli-service build --modern",
"lint": "vue-cli-service lint",
"test:e2e": "vue-cli-service test:e2e",
"test:unit": "vue-cli-service test:unit"
"test:unit": "vue-cli-service test:unit",
"analyze-bundle": "npm run build -- --report-json && webpack-bundle-analyzer ../priv/static/report.json"
},
"dependencies": {
"apollo-absinthe-upload-link": "^1.4.0",
@ -44,7 +45,8 @@
"node-sass": "^4.10.0",
"sass-loader": "^7.1.0",
"vue-cli-plugin-apollo": "^0.17.4",
"vue-template-compiler": "^2.5.17"
"vue-template-compiler": "^2.5.17",
"webpack-bundle-analyzer": "^3.0.3"
},
"browserslist": [
"> 1%",

View file