Created
May 2, 2018 02:14
-
-
Save jbenner-radham/0083c982eefbfbd6313ce9fee1d198c1 to your computer and use it in GitHub Desktop.
Vue CLI config with prerendering.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| const PrerenderSpaPlugin = require('prerender-spa-plugin'); | |
| const Renderer = PrerenderSpaPlugin.PuppeteerRenderer; | |
| module.exports = { | |
| configureWebpack: { | |
| plugins: [ | |
| new PrerenderSpaPlugin({ | |
| staticDir: path.join(__dirname, 'dist'), | |
| routes: ['/'], | |
| renderer: new Renderer() | |
| }) | |
| ] | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment