How to interrupt jade and concat and guess javascript files?
Here is a typical type of jade
extend layout
block head
script(src="/js/polyfills/html5shiv.js")
block body
header
nav...
main
section
form...
footer
nav...
script(src="/js/polyfills/arrayGenerics.js")
script(src="/js/polyfills/placeholder.js")
script(src="/js/formSubmitter.js")
This usually turns into HTML, but wouldn't it be nice if the javascript was concatenated and extinct (or at least only concatenated) before it hits the browser?
Stylus does this pretty well for CSS. Is there a way to interrupt the jade before it renders HTML? Sense, can I run custom js in my app.js file before the html hits the browser?
+3
source to share
No one has answered this question yet
See similar questions:
or similar: