Webpack client render and server side render build solution for Vue
https://github.com/easy-team/easywebpack/tree/master/packages/framework/easywebpack-vue
see easywebpack
- @easy-team/easywebpack-vue ^4.x.x > Webpack 4.x.x + Babel 7
- easywebpack-vue ^4.x.x > Webpack 4.x.x + Babel 6
- easywebpack-vue ^3.x.x > Webpack 3.x.x + Babel 6
$ npm i @easy-team/easywebpack-vue --save-dev
const easywebpack = require('@easy-team/easywebpack-vue');
const webpack = easywebpack.webpack;
const merge = easywebpack.merge;
const baseWebpackConfig = easywebpack.getWebpackConfig({
env, // support dev, test, prod
target : 'web', // browser mode build
entry:{
app: 'src/index.js'
}
});
module.exports = merge(baseWebpackConfig, {
})
webpack --config webpack.config.js
const webpackConfig = require('./webpack.config.js');
if (process.env.NODE_SERVER) {
// development mode: webpack building and start webpack hot server
easywebpack.server(config);
} else {
// build file to disk
easywebpack.build(config);
}
-
vue-client-render-boilerplate Vue client render boilerplate.
-
egg-vue-webpack-boilerplate support client render and server render.
-
egg-vue-typescript-boilerplate Egg + TypeScript + Vue server render boilerplate.
-
you can use easywebpack-cli create client render project or create server side render project for vue.
Please open an issue here.