Add server-side rendering (via bundleRenderer, as this is what the Vue docs recommend, and apparently the only way it does encapsulation)

This commit is contained in:
Steve Sanderson
2017-03-10 10:51:47 +00:00
parent beace263fc
commit 2067ea2758
14 changed files with 117 additions and 51 deletions

View File

@@ -1,11 +1,10 @@
import './css/site.css';
import Vue from 'vue';
import router from './router';
const App = require('./components/app/app.vue.html');
import VueRouter from 'vue-router';
import { routes } from './routes';
Vue.use(VueRouter);
new Vue({
el: 'app',
render: h => h(App, { props: {} }),
router: router
el: '#app-root',
router: new VueRouter({ mode: 'history', routes: routes }),
render: h => h(require('./components/app/app.vue.html'))
});