Commit d1f146cd by zhangxingmin

push

parent c0da3453
......@@ -21,10 +21,4 @@ server {
}
}
location /cffp/ {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /cffp/index.html;
}
}
......@@ -4,7 +4,7 @@ import vue from '@vitejs/plugin-vue';
import { fileURLToPath, URL } from 'node:url';
export default defineConfig({
base: '/cffp/',
base: '/', // 生产环境使用相对路径
plugins: [vue({/* 自定义元素配置 */})],
resolve: {
alias: { '@': fileURLToPath(new URL('./', import.meta.url)) }
......@@ -17,6 +17,7 @@ export default defineConfig({
}
},
build: {
assetsDir: 'assets',
minify: 'terser',
terserOptions: {
compress: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment