From 098af2f8051b66805c7f27f2bbdf5b7a7427530f Mon Sep 17 00:00:00 2001 From: dskvr Date: Sun, 8 Jan 2023 13:01:39 +0100 Subject: [PATCH] reduce package size --- package.json | 1 + vue.config.js | 4 +++- yarn.lock | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a0d656b..01d7075 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,7 @@ "style-loader": "3.3.1", "tailwindcss": "3.2.4", "vue-cli-plugin-yaml-loader": "~1.0.0", + "webpack-bundle-analyzer": "4.7.0", "webpack-cli": "5.0.0", "yaml-loader": "^0.6.0" }, diff --git a/vue.config.js b/vue.config.js index 63ebab0..5139dc7 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,6 +1,7 @@ const { defineConfig } = require('@vue/cli-service') const NodePolyfillPlugin = require("node-polyfill-webpack-plugin"); const CompressionPlugin = require("compression-webpack-plugin") +const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; module.exports = defineConfig({ transpileDependencies: true, @@ -16,7 +17,8 @@ module.exports = defineConfig({ new NodePolyfillPlugin(), new CompressionPlugin({ test: /\.js(\?.*)?$/i, - }) + }), + new BundleAnalyzerPlugin() ], optimization: { splitChunks: { diff --git a/yarn.lock b/yarn.lock index 48ede1c..17060bd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9048,7 +9048,7 @@ webidl-conversions@^3.0.0: resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== -webpack-bundle-analyzer@^4.4.0: +webpack-bundle-analyzer@4.7.0, webpack-bundle-analyzer@^4.4.0: version "4.7.0" resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.7.0.tgz#33c1c485a7fcae8627c547b5c3328b46de733c66" integrity sha512-j9b8ynpJS4K+zfO5GGwsAcQX4ZHpWV+yRiHDiL+bE0XHJ8NiPYLTNVQdlFYWxtpg9lfAQNlwJg16J9AJtFSXRg==