Browse Source

reduce package size

develop
dskvr 2 years ago
parent
commit
098af2f805
  1. 1
      package.json
  2. 4
      vue.config.js
  3. 2
      yarn.lock

1
package.json

@ -79,6 +79,7 @@
"style-loader": "3.3.1", "style-loader": "3.3.1",
"tailwindcss": "3.2.4", "tailwindcss": "3.2.4",
"vue-cli-plugin-yaml-loader": "~1.0.0", "vue-cli-plugin-yaml-loader": "~1.0.0",
"webpack-bundle-analyzer": "4.7.0",
"webpack-cli": "5.0.0", "webpack-cli": "5.0.0",
"yaml-loader": "^0.6.0" "yaml-loader": "^0.6.0"
}, },

4
vue.config.js

@ -1,6 +1,7 @@
const { defineConfig } = require('@vue/cli-service') const { defineConfig } = require('@vue/cli-service')
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin"); const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
const CompressionPlugin = require("compression-webpack-plugin") const CompressionPlugin = require("compression-webpack-plugin")
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = defineConfig({ module.exports = defineConfig({
transpileDependencies: true, transpileDependencies: true,
@ -16,7 +17,8 @@ module.exports = defineConfig({
new NodePolyfillPlugin(), new NodePolyfillPlugin(),
new CompressionPlugin({ new CompressionPlugin({
test: /\.js(\?.*)?$/i, test: /\.js(\?.*)?$/i,
}) }),
new BundleAnalyzerPlugin()
], ],
optimization: { optimization: {
splitChunks: { splitChunks: {

2
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" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== 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" version "4.7.0"
resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.7.0.tgz#33c1c485a7fcae8627c547b5c3328b46de733c66" resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.7.0.tgz#33c1c485a7fcae8627c547b5c3328b46de733c66"
integrity sha512-j9b8ynpJS4K+zfO5GGwsAcQX4ZHpWV+yRiHDiL+bE0XHJ8NiPYLTNVQdlFYWxtpg9lfAQNlwJg16J9AJtFSXRg== integrity sha512-j9b8ynpJS4K+zfO5GGwsAcQX4ZHpWV+yRiHDiL+bE0XHJ8NiPYLTNVQdlFYWxtpg9lfAQNlwJg16J9AJtFSXRg==

Loading…
Cancel
Save