feat: 添加浏览器扩展下载功能

This commit is contained in:
2026-08-30 23:32:26 +08:00
parent 7fcb9abf69
commit c5de3499c0
15 changed files with 293 additions and 74 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import { resolve } from 'node:path';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
/** 功能脚本独立构建 → dist-features/(部署到后端静态目录) */
/** 功能脚本独立构建 → artifacts/features/(部署到后端静态目录) */
export default defineConfig({
plugins: [vue()],
resolve: {
@@ -14,7 +14,7 @@ export default defineConfig({
'process.env.NODE_ENV': JSON.stringify('production'),
},
build: {
outDir: 'dist-features',
outDir: 'artifacts/features',
emptyOutDir: true,
lib: {
entry: resolve(__dirname, 'src/features/pdd-ad-fee/index.ts'),