Advertisement
Guest User

webpack.config.js

a guest
Oct 8th, 2018
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. let WebpackConfig = require('../src/builder/WebpackConfig');
  3.  
  4. module.exports = new WebpackConfig().build();
  5.  
  6. const path = require('path');
  7. const HtmlWebpackPlugin = require('html-webpack-plugin');
  8.  
  9. module.exports.plugins.push(
  10.     new HtmlWebpackPlugin({
  11.         template: Mix.paths.root('resources/views/vueApp.blade.php'),
  12.         inject: false
  13.     })
  14. );
  15.  
  16. const PrerenderSpaPlugin = require('prerender-spa-plugin');
  17.  
  18. module.exports.plugins.push(
  19.     new PrerenderSpaPlugin({
  20.         // Path to compiled app
  21.         staticDir: path.join(__dirname, './dist'),
  22.         // List of endpoints you wish to prerender
  23.         routes: ['/', '/show/services']
  24.     })
  25. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement