35 lines
1.1 KiB
JavaScript
35 lines
1.1 KiB
JavaScript
// const ScriptSetup = require('unplugin-vue2-script-setup/webpack').default;
|
||
|
||
module.exports = {
|
||
parallel: false,
|
||
configureWebpack: {
|
||
plugins: [
|
||
// ScriptSetup({
|
||
// /* options */
|
||
// }),
|
||
],
|
||
},
|
||
chainWebpack(config) {
|
||
// disable type check and let `vue-tsc` handles it
|
||
config.plugins.delete('fork-ts-checker');
|
||
},
|
||
};
|
||
// module.exports = {
|
||
// /**
|
||
// * 此处为发行h5,微信小程序,app中删除console
|
||
// * 如需显示console 需要注释此处重新运行
|
||
// */
|
||
// chainWebpack: (config) => {
|
||
// // 发行或运行时启用了压缩时会生效
|
||
// config.optimization.minimizer('terser').tap((args) => {
|
||
// const compress = args[0].terserOptions.compress
|
||
// // 非 App 平台移除 console 代码(包含所有 console 方法,如 log,debug,info...)
|
||
// compress.drop_console = true
|
||
// compress.pure_funcs = [
|
||
// '__f__', // App 平台 vue 移除日志代码
|
||
// // 'console.debug' // 可移除指定的 console 方法
|
||
// ]
|
||
// return args
|
||
// })
|
||
// }
|
||
// }
|