forked from turkyden/watermark-pro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
52 lines (51 loc) · 1.46 KB
/
.umirc.ts
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
import { defineConfig } from 'umi';
export default defineConfig({
title:
'Watermark Pro 最安全,最快速的纯前端图片加水印,拒绝上传保证个人信息安全。',
favicon: 'https://www.buymeacoffee.com/favicon.ico',
metas: [
{
name: 'keywords',
content: '水印生成工具, lowcode, 低代码',
},
{
name: 'description',
content:
'💦 最安全,最快速的纯前端图片加水印,拒绝上传保证个人信息安全。',
},
],
hash: true,
analytics: {
baidu: 'd4071b11b31dd14a32c788c74c1d5b6b',
},
runtimePublicPath: true,
publicPath:
process.env.NODE_ENV === 'production'
? 'https://cdn.jsdelivr.net/gh/turkyden/watermark-pro@gh-pages/'
: '/',
theme: {
'primary-color': '#6366F1',
'border-radius-base': '4px',
},
antd: {
dark: false, // 开启暗色主题
compact: true, // 开启紧凑主题
},
mfsu: {},
nodeModulesTransform: {
type: 'none',
},
routes: [{ path: '/', component: '@/pages/index' }],
fastRefresh: {},
headScripts: [
`(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:2368901,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
`,
],
});