parent
20c53e2b9e
commit
4660831b9c
|
@ -4,6 +4,8 @@ global-styling:
|
|||
dist/tailwind.css: {}
|
||||
global-scripts:
|
||||
js:
|
||||
dist/js/app.js: {}
|
||||
|
||||
'https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js':
|
||||
type: external
|
||||
minified: true
|
||||
|
|
7
web/themes/custom/opdavies/src/app.js
Normal file
7
web/themes/custom/opdavies/src/app.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
import hljs from 'highlightjs'
|
||||
|
||||
document.addEventListener('DOMContentLoaded', event => {
|
||||
document.querySelectorAll('pre code').forEach(block => {
|
||||
hljs.highlightBlock(block)
|
||||
})
|
||||
})
|
|
@ -6,3 +6,5 @@ mix.postCss('src/tailwind.pcss', 'dist', [
|
|||
require('postcss-nested'),
|
||||
require('autoprefixer')
|
||||
])
|
||||
|
||||
mix.js('src/app.js', 'dist/js')
|
||||
|
|
Loading…
Reference in a new issue