Jesus fucking christ it takes this much bullshit to use webpack ES6 and Vue
parent
716f6946a7
commit
a915c4eef5
@ -0,0 +1,14 @@
|
||||
{
|
||||
"presets": [
|
||||
[
|
||||
"es2015",
|
||||
{
|
||||
"modules": false
|
||||
}
|
||||
],
|
||||
"stage-2"
|
||||
],
|
||||
"ignore": [
|
||||
"node_modules/*"
|
||||
]
|
||||
}
|
@ -1,10 +1,10 @@
|
||||
import Vue from 'vue'
|
||||
import AppLayout from './theme/Layout.vue'
|
||||
|
||||
const app = new Vue({
|
||||
data: {
|
||||
message: 'Hello Vue'
|
||||
},
|
||||
template: '<div id="app">{{ message }}</div>'
|
||||
// render is a Vuejs function that will return an elements
|
||||
// This is equivalent to template: '<app></app>'
|
||||
render: h => h(AppLayout)
|
||||
})
|
||||
|
||||
export { app }
|
||||
|
@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<nav class="nav has-shadow">
|
||||
<div class="container">
|
||||
<a href="/">
|
||||
<img src="http://bit.ly/vue-img" alt="Vue SPA" />
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
<section class="main-section section"></section>
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<div class="content has-text-centered">
|
||||
Follow us on
|
||||
<a href="https://twitter.com/bstavroulakis" target="_blank">Twitter</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {}
|
||||
</script>
|
Loading…
Reference in New Issue