Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let WebpackConfig = require('../src/builder/WebpackConfig');
- module.exports = new WebpackConfig().build();
- const path = require('path');
- const HtmlWebpackPlugin = require('html-webpack-plugin');
- module.exports.plugins.push(
- new HtmlWebpackPlugin({
- template: Mix.paths.root('resources/views/vueApp.blade.php'),
- inject: false
- })
- );
- const PrerenderSpaPlugin = require('prerender-spa-plugin');
- module.exports.plugins.push(
- new PrerenderSpaPlugin({
- // Path to compiled app
- staticDir: path.join(__dirname, './dist'),
- // List of endpoints you wish to prerender
- routes: ['/', '/show/services']
- })
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement