-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
43 lines (38 loc) · 891 Bytes
/
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
var PrerenderSpaPlugin = require('prerender-spa-plugin')
var path = require('path')
module.exports = {
configureWebpack: config => {
if (process.env.NODE_ENV !== 'production') return
return {
plugins: [
new PrerenderSpaPlugin(
path.resolve(__dirname, 'dist'),
[
'/',
'/about',
'/javascript',
'/angular',
'/network',
'/others',
'/article/js/one',
'/article/js/two',
'/article/js/three',
'/article/js/async',
'/article/js/objects',
'/article/js/ecma',
'/article/angular/performance',
'/article/net/one',
'/article/net/two',
'/article/net/three',
'/article/others/errors',
'/article/others/algorithmics-basis',
'/article/others/css-preload',
'/article/others/pwa'
],
{
}
)
]
}
}
}