Skip to content

Commit 07e85e4

Browse files
committed
Added note to README about prerendering setup
1 parent e9aaaae commit 07e85e4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,23 @@ yarn run lint
3535

3636
### Customize configuration
3737
See [Configuration Reference](https://cli.vuejs.org/config/).
38+
39+
### Prerendering configuration
40+
41+
**NOTE:** for prerendering to work correctly, routes for those pages must be added to `vue.config.js`:
42+
43+
```js
44+
module.exports = {
45+
configureWebpack: {
46+
plugins: [
47+
new PrerenderSPAPlugin({
48+
staticDir: path.join(__dirname, 'dist'),
49+
routes: [
50+
'/',
51+
'/about',
52+
],
53+
}),
54+
],
55+
},
56+
};
57+
```

0 commit comments

Comments
 (0)