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 --inlineOpen 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 ssrStill need to work on:
- build with revisions
- support
*.vuefiles and build code - hot code swapping
MIT