chore(ext): wxt configuration

This commit is contained in:
Simon
2026-01-21 14:04:26 +08:00
parent 5402cdecc2
commit a18ebfd6c1

View File

@@ -9,12 +9,22 @@ mkdirSync(chromeProfile, { recursive: true })
export default defineConfig({
srcDir: 'src',
modules: ['@wxt-dev/module-react'],
runner: {
webExt: {
chromiumProfile: chromeProfile,
keepProfileChanges: true,
},
vite: () => ({
plugins: [tailwindcss()],
build: {
chunkSizeWarningLimit: 2000,
cssCodeSplit: true,
rollupOptions: {
onwarn: function (message, handler) {
if (message.code === 'EVAL') return
handler(message)
},
},
},
}),
manifest: {
name: 'Page Agent Ext',