forked from widgetify-app/widgetify-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwxt.config.ts
More file actions
76 lines (75 loc) · 1.8 KB
/
wxt.config.ts
File metadata and controls
76 lines (75 loc) · 1.8 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
75
76
import tailwindcss from '@tailwindcss/vite'
import { defineConfig } from 'wxt'
export default defineConfig({
vite: () =>
({
plugins: [tailwindcss()],
build: {
minify: 'terser',
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true,
pure_funcs: ['console.log', 'console.info', 'console.debug'],
},
format: {
comments: false,
},
},
rollupOptions: {
treeshake: {
moduleSideEffects: false,
propertyReadSideEffects: false,
tryCatchDeoptimization: false,
},
},
chunkSizeWarningLimit: 1000,
sourcemap: false,
cssCodeSplit: true,
assetsInlineLimit: 4096,
},
}) as any,
alias: {
'@/common': './src/common',
'@/analytics': './src/analytics',
'@/services': './src/services',
'@/components': './src/components',
'@/context': './src/context',
'@/hooks': './src/hooks',
'@/utils': './src/utils',
'@/layouts': './src/layouts',
'@/pages': './src/pages',
'@/assets': './src/assets',
},
modules: [
'@wxt-dev/webextension-polyfill',
'@wxt-dev/auto-icons',
'@wxt-dev/module-react',
],
manifest: {
version: '1.0.13',
name: 'Widgetify',
description:
'Transform your new tab into a smart dashboard with Widgetify! Get currency rates, crypto prices, weather & more.',
permissions: ['storage', 'search'],
browser_specific_settings: {
gecko: {
id: 'widgetify@widgetify-app.github.io',
},
},
host_permissions: [
'https://github.com/*',
'https://raw.githubusercontent.com/*',
'https://api.github.com/*',
'https://api.widgetify.ir/*',
'https://www.google-analytics.com/collect*',
'https://storage.c2.liara.space/*',
],
icons: {
16: 'icons/icon16.png',
32: 'icons/icon32.png',
48: 'icons/icon48.png',
128: 'icons/icon128.png',
},
},
})