vue 打包配置
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
publicPath : './',//打包后的 ,注意是否要设置 <base href="./">
outputDir : '../../public/snap',
chainWebpack: config => {
config.plugin('html').tap(args => {
args[0].title = 'html的title';
return args;
});
},
})
