Replace Mix with Encore

This commit is contained in:
Oliver Davies 2019-10-04 08:19:56 +01:00
parent 95450f2719
commit 5c8daf3054
25 changed files with 1352 additions and 3844 deletions

25
assets/js/app.js Normal file
View file

@ -0,0 +1,25 @@
import '../css/tailwind.css'
import Vue from 'vue';
window.hljs = require('highlightjs')
new Vue({
el: '#app',
data () {
return {
isOpen: false
}
},
mounted: function () {
this.$el.classList.remove('no-js')
this.$el.classList.add('js')
},
methods: {
toggle () {
this.isOpen = !this.isOpen
}
}
})