-
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) · 878 Bytes
/
Copy pathwxt.config.ts
File metadata and controls
33 lines (32 loc) · 878 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';
import pkg from './package.json';
// See https://wxt.dev/api/config.html
export default defineConfig({
extensionApi: 'chrome',
modules: ['@wxt-dev/module-vue', '@wxt-dev/auto-icons'],
vite: () => ({
define: { __APP_VERSION__: JSON.stringify(pkg.version) },
}),
manifest: ({ browser }) => {
return {
permissions: ['storage'],
author:
browser === 'firefox'
? 'Uncore'
: {
email: 'contactuncor3@gmail.com',
},
description:
'A free and open-source extension to change the default install command on npmjs.com',
short_name: 'AltPkg',
name: 'AltPkg',
version: pkg.version,
icons: {
16: '/icons/16.png',
32: '/icons/32.png',
48: '/icons/48.png',
128: '/icons/128.png',
},
};
},
});