1- const merge = require ( 'webpack-merge' )
2- const nodeExternals = require ( 'webpack-node-externals' )
3- const baseConfig = require ( './webpack.base.config.js' )
4- const VueSSRServerPlugin = require ( 'vue-server-renderer/server-plugin' )
1+ /* eslint-disable import/no-commonjs */
2+ const merge = require ( 'webpack-merge' ) ;
3+ const nodeExternals = require ( 'webpack-node-externals' ) ;
4+ const baseConfig = require ( './webpack.base.config.js' ) ;
5+ const VueSSRServerPlugin = require ( 'vue-server-renderer/server-plugin' ) ;
56
67module . exports = merge ( baseConfig , {
78 // Point entry to your app's server entry file
@@ -17,7 +18,7 @@ module.exports = merge(baseConfig, {
1718
1819 // This tells the server bundle to use Node-style exports
1920 output : {
20- libraryTarget : 'commonjs2'
21+ libraryTarget : 'commonjs2' ,
2122 } ,
2223
2324 // https://webpack.js.org/configuration/externals/#function
@@ -28,13 +29,11 @@ module.exports = merge(baseConfig, {
2829 // do not externalize dependencies that need to be processed by webpack.
2930 // you can add more file types here e.g. raw *.vue files
3031 // you should also whitelist deps that modifies `global` (e.g. polyfills)
31- whitelist : / \. c s s $ /
32+ whitelist : / \. c s s $ / ,
3233 } ) ,
3334
3435 // This is the plugin that turns the entire output of the server build
3536 // into a single JSON file. The default file name will be
3637 // `vue-ssr-server-bundle.json`
37- plugins : [
38- new VueSSRServerPlugin ( )
39- ]
40- } )
38+ plugins : [ new VueSSRServerPlugin ( ) ] ,
39+ } ) ;
0 commit comments