| 12345678910111213141516171819 |
- const { defineConfig } = require('@vue/cli-service')
- // 首屏 <title> 取自 .env 的 VUE_APP_BRAND_TITLE(构建期);
- // 运行期会被 src/utils/brand.js 用 window.__APP_CONFIG__ 再次覆盖。
- const BRAND_TITLE = process.env.VUE_APP_BRAND_TITLE || '交通信号控制平台—灵•智'
- module.exports = defineConfig({
- productionSourceMap: false,
- transpileDependencies: true,
- lintOnSave: false,
- chainWebpack: config => {
- config.plugin('html').tap(args => {
- args[0].title = BRAND_TITLE
- return args
- })
- }
- })
|