zhjg-qrcode/vue.config.js

30 lines
533 B
JavaScript

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,
},
},
},
})