-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvue.config.js
42 lines (41 loc) · 1.41 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
//var path = require('path');
/*
const PrerenderSPAPlugin = require('prerender-spa-plugin');
// Renders headlessly in a downloaded version of Chromium through puppeteer
const PuppeteerRenderer = PrerenderSPAPlugin.PuppeteerRenderer;
*/
module.exports = {
chainWebpack: (config) => {
config.module
.rule("i18n")
.resourceQuery(/blockType=i18n/)
.type("javascript/auto")
.use("i18n")
.loader("@kazupon/vue-i18n-loader")
.end();
},
runtimeCompiler: true,
/*
configureWebpack: {
plugins: [
new PrerenderSPAPlugin({
//staticDir: __dirname+'/dist', // The path to the folder where __index.html is.
staticDir: path.join(__dirname, 'dist'),
routes: [
'/',
'/contribute','/contribute/projects','/contribute/collaborations',
'/start','/start/startproject','/start/offer','/start/checklist','/start/phases',
'/about','/about/mission','/about/people','/about/partnerships','/about/pwa','/about/contact', '/about/zurichstyle'
'/events',
'/forum',
'/login',
'/register',
'/profile',
'/terms'
], // List of routes to prerender.
renderer: new PuppeteerRenderer()
})
]
}
*/
};