Templating is tricky, use language based DSL.
This project demonstrates writing Vue.js 2 in plain CoffeeScript. The goal is to find an easy solution to render HTML during building.
- Develop
gulp ssr
webpack-dev-server --hot --inline
Open build/index.html
to debug.
There are actually 3 entries, and I'm trying to make it isomorphic:
build/index.html
build/page/a.html
build/page/b.html
- Build for production
webpack --config webpack-build.config.coffee
webpack --config webpack.server.coffee
env=prod gulp ssr
Still need to work on:
- build with revisions
- support
*.vue
files and build code - hot code swapping
MIT