|
@ -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: { |
|
|