-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwxt.config.ts
More file actions
33 lines (32 loc) · 1020 Bytes
/
wxt.config.ts
File metadata and controls
33 lines (32 loc) · 1020 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
32
33
import { defineConfig } from "wxt";
// See https://wxt.dev/api/config.html
export default defineConfig({
imports: false,
modules: ["@wxt-dev/module-react"],
srcDir: "src",
webExt: {
startUrls: ["https://csstats.gg/player/76561198088629896"],
chromiumArgs: [
// TODO: Make it compatible with MacOS/Linux
`--user-data-dir='C:\\Users\\${process.env.USERNAME}\\AppData\\Local\\Google\\Microsoft\\Edge\\User Data'`,
// Edge v143.0.3650.28 says it's not working anymore but it seems to still mitigate CloudFlare issues
"--disable-blink-features=AutomationControlled",
],
keepProfileChanges: true,
binaries: {
edge: "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe",
},
},
manifest: {
name: "CSStats+",
browser_specific_settings: {
gecko: {
// @ts-expect-error - WXT doesn't support this field yet but is required by Firefox
// @see https://github.com/wxt-dev/wxt/pull/1976
data_collection_permissions: {
required: ["none"],
},
},
},
},
});