-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
29 lines (26 loc) · 966 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
const path = require('path')
//var HtmlWebpackPlugin = require('html-webpack-plugin')
const PrerenderSPAPlugin = require('prerender-spa-plugin')
const Renderer = PrerenderSPAPlugin.PuppeteerRenderer
module.exports = {
configureWebpack: {
plugins: [
// new HtmlWebpackPlugin({
// title: 'PRODUCTION ekatva site',
// template: '/public/index.html',
// filename: path.resolve(__dirname, 'dist/index.html')
// }),
new PrerenderSPAPlugin({
staticDir: path.join(__dirname, 'dist'), // Required - The path to the webpack-outputted app to prerender.
routes: ['/', '/products/dhoti', '/products/kerala-saree', '/products/set-mundu','/products/khadi-kurta-for-men', '/contact', '/manufacturing'], // List of routes to prerender.
renderer: new Renderer({
inject: {
foo: 'bar'
},
headless: false,
renderAfterDocumentEvent: 'render-event'
})
})
]
}
}