update:打包配置

This commit is contained in:
ltx 2026-03-25 03:10:46 +08:00
parent d986365fac
commit 4f89998c92
2 changed files with 3 additions and 3 deletions

4
.env
View File

@ -5,7 +5,7 @@ VITE_PORT = 3030
VITE_OPEN = true
# 打包是否开启 cdn(源文件 utils/build.ts),可自行修改
VITE_OPEN_CDN = true
VITE_OPEN_CDN = false
# public path 配置线上环境路径(打包)、本地通过 http-server 访问时,请置空即可
#VITE_PUBLIC_PATH = /vue-next-admin-preview/
VITE_PUBLIC_PATH = 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/event_web/202603250222/'

View File

@ -11,7 +11,7 @@ import importToCDN from 'vite-plugin-cdn-import';
export const buildConfig = {
cdn() {
return importToCDN({
prodUrl: 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/event_web/202603250222',
prodUrl: 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/event_web/202603250222/',
modules: [
// autoComplete('vue'),
// autoComplete('axios'),