Search Docs
生成环境 可以通过 base 设置 cdn 路径 publicPath 根路径 可参考webpack,业务模式默认为 auto html 部分 publicPath 默认为 undefined,可设置全量域名或子目录适配,也可以单独在html设置 Public
base
auto
boolean | string | 'auto'
'auto'
import {defineConfig} from '@empjs/cli' export default defineConfig(store => { return { base:'/' } })
import {defineConfig} from '@empjs/cli' export default defineConfig(store => { return { base:store.isDev?'https://dev.xxx.com/':'https://www.xxx.com/' } })