zhjg-qrcode/vue.config.js

30 lines
533 B
JavaScript
Raw Permalink Normal View History

2024-05-23 15:58:30 +08:00
const { defineConfig } = require('@vue/cli-service')
// const webpack = require("webpack")
module.exports = defineConfig({
publicPath: "./",
// assetsDir: 'static',
transpileDependencies: true,
lintOnSave:false,
// 配置插件参数
// configureWebpack: {
// mode: 'production',
// },
devServer: {
client: {
overlay: false,
},
},
configureWebpack: {
optimization: {
splitChunks: {
chunks: 'async',
minSize: 20000,
maxSize: 200000,
},
},
},
})