Guest User

Untitled

a guest
Nov 18th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. const merge = require('webpack-merge')
  2. const nodeExternals = require('webpack-node-externals')
  3. const baseConfig = require('./webpack.config.js')
  4. const VueSSRServerPlugin = require('vue-server-renderer/server-plugin')
  5.  
  6. module.exports = merge(baseConfig, {
  7. entry: './src/entry-server.js',
  8. target: 'node',
  9. devtool: 'source-map',
  10. // This tells the server bundle to use Node-style exports
  11. output: {
  12. libraryTarget: 'commonjs2'
  13. },
  14. externals: nodeExternals({
  15. whitelist: /\.css$/
  16. }),
  17. plugins: [
  18. new VueSSRServerPlugin()
  19. ]
  20. })
Add Comment
Please, Sign In to add comment