diff --git a/assets/js/app.js b/assets/js/app.js index bb146985..4de18bad 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -1,25 +1,8 @@ +import 'alpinejs' 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 - } - } -}) +let html = document.documentElement +html.classList.remove('no-js') +html.classList.add('js') diff --git a/package.json b/package.json index 7d3e9e23..ec77f426 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ }, "dependencies": { "@symfony/webpack-encore": "^0.28.0", + "alpinejs": "^1.8.2", "highlightjs": "^9.16.2", "postcss-import": "^12.0.1", "postcss-nested": "^4.2.1", @@ -15,9 +16,7 @@ "tailwindcss-interaction-variants": "^2.2.0", "tailwindcss-skip-link": "^1.0.1", "tailwindcss-spaced-items": "^0.1.0", - "tailwindcss-visuallyhidden": "^1.0.2", - "tailwindcss-vuejs": "^1.1.2", - "vue": "^2.6.10" + "tailwindcss-visuallyhidden": "^1.0.2" }, "devDependencies": { "eslint": "^5.15.3", @@ -29,8 +28,6 @@ "eslint-plugin-vue": "^5.2.2", "glob-all": "^3.1.0", "postcss-loader": "^3.0.0", - "purgecss-webpack-plugin": "^1.6.0", - "vue-loader": "^15.7.2", - "vue-template-compiler": "^2.6.10" + "purgecss-webpack-plugin": "^1.6.0" } } diff --git a/purgecss.config.js b/purgecss.config.js index 427c029b..1090227e 100644 --- a/purgecss.config.js +++ b/purgecss.config.js @@ -3,7 +3,6 @@ let glob = require('glob-all') module.exports = { defaultExtractor: content => content.match(/[\w-/:]+(? glob.sync([ - 'assets/**/*.vue', 'source/**/*.{md,twig}' ]) } diff --git a/source/_layouts/app.html.twig b/source/_layouts/app.html.twig index 80725745..86949da1 100644 --- a/source/_layouts/app.html.twig +++ b/source/_layouts/app.html.twig @@ -1,5 +1,5 @@ - + {% if page.title is defined and page.url != '//' %}{{ page.title }} | {% endif %}{{ site.title }} - {{ site.subtitle }} {% include 'meta' %} @@ -21,7 +21,7 @@ {% endfor %} -
+
{% block body %}{% endblock %}
diff --git a/source/_partials/layout/navbar.html.twig b/source/_partials/layout/navbar.html.twig index 16475a62..a86c364a 100644 --- a/source/_partials/layout/navbar.html.twig +++ b/source/_partials/layout/navbar.html.twig @@ -1,6 +1,6 @@