Commit d1f146cd by zhangxingmin

push

parent c0da3453
...@@ -21,10 +21,4 @@ server { ...@@ -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'; ...@@ -4,7 +4,7 @@ import vue from '@vitejs/plugin-vue';
import { fileURLToPath, URL } from 'node:url'; import { fileURLToPath, URL } from 'node:url';
export default defineConfig({ export default defineConfig({
base: '/cffp/', base: '/', // 生产环境使用相对路径
plugins: [vue({/* 自定义元素配置 */})], plugins: [vue({/* 自定义元素配置 */})],
resolve: { resolve: {
alias: { '@': fileURLToPath(new URL('./', import.meta.url)) } alias: { '@': fileURLToPath(new URL('./', import.meta.url)) }
...@@ -17,6 +17,7 @@ export default defineConfig({ ...@@ -17,6 +17,7 @@ export default defineConfig({
} }
}, },
build: { build: {
assetsDir: 'assets',
minify: 'terser', minify: 'terser',
terserOptions: { terserOptions: {
compress: { 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