chore(ext): wxt configuration
This commit is contained in:
@@ -9,12 +9,22 @@ mkdirSync(chromeProfile, { recursive: true })
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
srcDir: 'src',
|
srcDir: 'src',
|
||||||
modules: ['@wxt-dev/module-react'],
|
modules: ['@wxt-dev/module-react'],
|
||||||
runner: {
|
webExt: {
|
||||||
chromiumProfile: chromeProfile,
|
chromiumProfile: chromeProfile,
|
||||||
keepProfileChanges: true,
|
keepProfileChanges: true,
|
||||||
},
|
},
|
||||||
vite: () => ({
|
vite: () => ({
|
||||||
plugins: [tailwindcss()],
|
plugins: [tailwindcss()],
|
||||||
|
build: {
|
||||||
|
chunkSizeWarningLimit: 2000,
|
||||||
|
cssCodeSplit: true,
|
||||||
|
rollupOptions: {
|
||||||
|
onwarn: function (message, handler) {
|
||||||
|
if (message.code === 'EVAL') return
|
||||||
|
handler(message)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
manifest: {
|
manifest: {
|
||||||
name: 'Page Agent Ext',
|
name: 'Page Agent Ext',
|
||||||
|
|||||||
Reference in New Issue
Block a user