feat: 新增浏览器插件

This commit is contained in:
2026-08-16 16:45:24 +08:00
parent 2f32d955eb
commit f209d93733
38 changed files with 4727 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import { crx } from '@crxjs/vite-plugin';
import vue from '@vitejs/plugin-vue';
import { resolve } from 'node:path';
import { defineConfig } from 'vite';
import manifest from './manifest.config';
export default defineConfig({
plugins: [vue(), crx({ manifest })],
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
},
},
build: {
sourcemap: true,
outDir: 'dist',
emptyOutDir: true,
},
server: {
port: 5173,
strictPort: true,
hmr: {
port: 5173,
},
},
});