-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.js
43 lines (36 loc) · 864 Bytes
/
.umirc.js
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
import {defineConfig} from 'umi';
export default defineConfig({
//webpack5: {},
ignoreMomentLocale: true,
title: 'UmiJs Sample app',
publicPath: '/static/',
analytics: {
ga: 'UA-62269729-10'
},
nodeModulesTransform: {
type: 'none'
},
dynamicImport: {
loading: '@/components/Loading/index.js'
},
metas:[
{
property: 'og:locale',
content: 'en_US'
}
],
headScripts: [
{
content: 'console.log("loaded")'
}
],
styles: [
'https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;500&display=swap',
'body {font-weight: 300; font-family: "Work Sans", sans-serif;} a {cursor: pointer;}'
],
scripts: [
{
content: 'console.log("loaded in the end")'
}
]
});