From 535d7f38a74333d68a74f8da113e2b9c871147dc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 30 Nov 2018 16:05:21 +0100 Subject: [PATCH] Add script to run webpack analyzer --- js/package.json | 6 ++++-- priv/static/.gitkeep | 0 2 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 priv/static/.gitkeep diff --git a/js/package.json b/js/package.json index 0266f84eb..32409beaa 100644 --- a/js/package.json +++ b/js/package.json @@ -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%", diff --git a/priv/static/.gitkeep b/priv/static/.gitkeep deleted file mode 100644 index e69de29bb..000000000