Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2019-10-03 14:13:50 +0300
committerGitHub <noreply@github.com>2019-10-03 14:13:50 +0300
commitb4ea36114f055cece29d95e4d74ac56982300322 (patch)
tree7d8183127b09202761d5a06581aa7f71227c523c /webpack.common.js
parentcf79ad643c4c8600d2ac601365258b78947593df (diff)
Add bundle analyzer (#2070)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/webpack.common.js b/webpack.common.js
index 54ca1714d..41236079b 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -1,4 +1,5 @@
const path = require('path');
+const BundleAnalyzerPlugin = require('@bundle-analyzer/webpack-plugin')
const { VueLoaderPlugin } = require('vue-loader');
module.exports = {
@@ -56,9 +57,12 @@ module.exports = {
}
]
},
- plugins: [new VueLoaderPlugin()],
+ plugins: [
+ new BundleAnalyzerPlugin({ token: process.env.BUNDLE_ANALYZER_TOKEN }),
+ new VueLoaderPlugin()
+ ],
resolve: {
extensions: ['*', '.js', '.vue', '.json'],
symlinks: false
}
-}; \ No newline at end of file
+};