forked from KwokKwok/Silo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwxt.config.js
More file actions
31 lines (30 loc) · 729 Bytes
/
Copy pathwxt.config.js
File metadata and controls
31 lines (30 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { defineConfig } from 'wxt';
import path from 'path';
console.log(path.resolve(__dirname, './src'));
export default defineConfig({
modules: ['@wxt-dev/module-react'],
manifest: {
name: '__MSG_extName__',
permissions: ['contextMenus'],
action: {},
"web_accessible_resources": [
{
"resources": ["ext.html"],
"matches": ['*://*/*']
}
],
default_locale: 'en',
},
vite: () => ({
esbuild: {
pure: ['console.log'], // 删除 console.log
drop: ['debugger'], // 删除 debugger
},
}),
alias: {
'@src': path.resolve(__dirname, './src'),
},
runner: {
startUrls: ["https://developer.mozilla.org/en-US/docs/Web/CSS/perspective"],
},
});