A simple Vue 2.0 Webpack that supports server side rendering. Note this template is not suitable for production - for that you may want to use the full webpack template.
This template is Vue 2.0 compatible.
This is a project template for vue-cli.
$ npm install -g vue-cli
$ vue init nguyendv/webpack-ssr my-project
$ cd my-project
$ npm install
$ npm run dev
-
npm run dev
: Webpack +vue-loader
with proper config for source maps & hot-reload. -
npm run build
: build with HTML/CSS/JS minification.
For detailed explanation on how things work, consult the docs for vue-loader and docs for vue ssr. Also check out the breaking changes in [email protected].
You can fork this repo to create your own boilerplate, and use it with vue-cli
:
vue init username/repo my-project