Commit 73a46ac4 by zhangxingmin

push

parent d12348f6
...@@ -4,6 +4,7 @@ import vue from '@vitejs/plugin-vue'; ...@@ -4,6 +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/', // 匹配 manifest.json 中的 base 路径
plugins: [vue({/* 自定义元素配置 */})], plugins: [vue({/* 自定义元素配置 */})],
resolve: { resolve: {
alias: { '@': fileURLToPath(new URL('./', import.meta.url)) } alias: { '@': fileURLToPath(new URL('./', import.meta.url)) }
...@@ -16,6 +17,8 @@ export default defineConfig({ ...@@ -16,6 +17,8 @@ export default defineConfig({
} }
}, },
build: { build: {
outDir: 'dist',
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