31 lines
885 B
JavaScript
31 lines
885 B
JavaScript
const { defineConfig } = require('@vue/cli-service')
|
|
|
|
module.exports = defineConfig({
|
|
transpileDependencies: true,
|
|
// devServer 代理配置已移除,所有代理均由外部 Nginx 处理。
|
|
pwa: {
|
|
name: 'EmailUnlimit',
|
|
themeColor: '#000000',
|
|
msTileColor: '#000000',
|
|
appleMobileWebAppCapable: 'yes',
|
|
appleMobileWebAppStatusBarStyle: 'black',
|
|
|
|
// 配置 workbox-webpack-plugin
|
|
workboxPluginMode: 'GenerateSW',
|
|
workboxOptions: {
|
|
// swSrc is required in InjectManifest mode.
|
|
// swSrc: 'dev/sw.js',
|
|
// ...other Workbox options...
|
|
}
|
|
},
|
|
chainWebpack: config => {
|
|
config.plugin('define').tap(definitions => {
|
|
Object.assign(definitions[0], {
|
|
__VUE_OPTIONS_API__: true,
|
|
__VUE_PROD_DEVTOOLS__: false,
|
|
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false
|
|
})
|
|
return definitions
|
|
})
|
|
}
|
|
}) |