使用vue-cli 3.0+构建服务端渲染,后端服务基于express服务端框架。
yarn install
yarn dev
yarn build
yarn build:client
yarn build:server
webpack-node-externals lodash.merge -D
错误:
Server-side bundle should have one single entry file. Avoid using CommonsChunkPlugin in the server config. vuessr...
解决:
...
optimization: {
splitChunks: TARGET_NODE ? false : undefined
},
...