Repository navigation
Expand file tree
/
Copy pathwxt.config.ts
More file actions
74 lines (67 loc) · 1.77 KB
/
Copy pathwxt.config.ts
File metadata and controls
74 lines (67 loc) · 1.77 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import { defineConfig } from 'wxt'
import Icons from 'unplugin-icons/vite'
// See https://wxt.dev/api/config.html
export default defineConfig({
modules: ['@wxt-dev/module-vue', '@wxt-dev/auto-icons'],
srcDir: 'src',
//override default chrome browser to Brave
webExt: {
disabled: true,
// manually point to my Brave exe
binaries: {
chrome: 'C:/Program Files/BraveSoftware/Brave-Browser-Beta/Application/brave.exe', // change path for Mac/Linux
},
// this flag enables the Prompt API
chromiumArgs: ['--disable-features=DisableLoadExtensionCommandLineSwitch'],
},
autoIcons: {
enabled: true,
baseIconPath: 'assets/img/fav/icon.png',
sizes: [128, 48, 32, 16],
// developmentIndicator: false,
},
vite: () => ({
plugins: [
Icons({
compiler: 'vue3',
autoInstall: true,
}),
],
css: {
devSourcemap: true, // WXT/Vite should automatically pick up postcss.config.js
postcss: {},
preprocessorOptions: {
scss: {
quietDeps: true,
api: 'modern-compiler',
additionalData: `@use "@/assets/styles/utils" as *;`,
},
},
},
}),
manifest: ({ browser }) => ({
permissions: [],
host_permissions: ['*://radio.garden/*'],
author: 'itsmarta',
homepage_url: 'https://github.com/itsmartashub/GardenPort',
// CHROME
...(browser === 'chrome' && {
name: 'GardenPort - Radio Garden Favorites Backup & Restore',
minimum_chrome_version: '119',
}),
// FIREFOX
...(browser === 'firefox' && {
name: 'GardenPort - Radio Garden Backup & Restore', // must be under 45 chars
browser_specific_settings: {
gecko: {
id: 'gardenport@itsmartashub',
strict_min_version: '128.0', // matches OKLCH support
data_collection_permissions: {
required: ['none'],
optional: [],
},
},
},
}),
}),
})