-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvue.config.js
118 lines (114 loc) · 2.33 KB
/
vue.config.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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
const SitemapPlugin = require('sitemap-webpack-plugin').default
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
const paths = [
{
path: '/',
name: '首頁@自由數學',
lastmod: '2023-09-19',
priority: 1.0,
changefreq: 'yearly'
},
{
path: '/intro',
name: '編創緣起',
lastmod: '2023-09-19',
priority: 0.7,
changefreq: 'yearly'
},
{
path: '/tools',
name: '小工具',
lastmod: '2023-09-19',
priority: 0.6,
changefreq: 'yearly'
},
{
path: '/one1/',
name: '一對一系列:倒溯法',
lastmod: '2023-09-19',
priority: 0.9,
changefreq: 'yearly'
},
{
path: '/one2',
name: '一對一系列:前推法',
lastmod: '2023-09-19',
priority: 0.8,
changefreq: 'yearly'
},
{
path: '/one3',
name: '一對一系列:具體經驗',
lastmod: '2023-09-19',
priority: 0.7,
changefreq: 'yearly'
},
{
path: '/one4/',
name: '一對一系列:渡過心理障礙',
lastmod: '2023-09-19',
priority: 0.9,
changefreq: 'yearly'
},
{
path: '/one5',
name: '一對一系列:主客易位法',
lastmod: '2023-09-19',
priority: 0.8,
changefreq: 'yearly'
},
{
path: '/one6',
name: '一對一系列:面對錯誤',
lastmod: '2023-09-19',
priority: 0.7,
changefreq: 'yearly'
},
{
path: '/one7/',
name: '一對一系列:互為主體、交互佈題法',
lastmod: '2023-09-19',
priority: 0.9,
changefreq: 'yearly'
},
{
path: '/one8',
name: '一對一系列:前推法',
lastmod: '2023-09-19',
priority: 0.8,
changefreq: 'yearly'
},
{
path: '/one9',
name: '數學學習診斷是什麼?',
lastmod: '2023-09-19',
priority: 0.7,
changefreq: 'yearly'
}
]
module.exports = {
transpileDependencies: true,
runtimeCompiler: true,
configureWebpack: {
resolve: {
fallback: {
fs: false,
child_process: false
}
},
plugins: [
new SitemapPlugin({ base: 'https://math.alearn.org.tw', paths }),
new NodePolyfillPlugin()
]
},
pwa: {
workboxOptions: {
exclude: [/\.gitkeep/],
skipWaiting: true,
clientsClaim: true
}
},
publicPath: process.env.NODE_ENV === 'production'
? '/'
: '/'
}