mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
import { defineConfig } from 'vite'
|
|
import { crx } from '@crxjs/vite-plugin'
|
|
import million from "million/compiler"
|
|
import manifest from './manifest.json'
|
|
import react from '@vitejs/plugin-react-swc'
|
|
import { sentryVitePlugin } from "@sentry/vite-plugin";
|
|
import { join } from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
million.vite({
|
|
auto: {
|
|
threshold: 0.005, // default: 0.1,
|
|
skip: [], // default []
|
|
}
|
|
}),
|
|
crx({ manifest }),
|
|
sentryVitePlugin({
|
|
org: process.env.SENTRY_ORG,
|
|
project: 'betterseqtaplus-main',
|
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
}),
|
|
sentryVitePlugin({
|
|
org: process.env.SENTRY_ORG,
|
|
project: 'betterseqtaplus-popup',
|
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
}),
|
|
],
|
|
server: {
|
|
port: 5173,
|
|
hmr: {
|
|
host: "localhost",
|
|
protocol: "ws",
|
|
port: 5173,
|
|
},
|
|
},
|
|
build: {
|
|
minify: false,
|
|
rollupOptions: {
|
|
input: {
|
|
settings: join(__dirname, 'src', 'interface', 'index.html'),
|
|
}
|
|
},
|
|
},
|
|
})
|