Re:Modern Script Loading
by gbuk2013 on Saturday September 28, 2019 @05:01AM
(#21099295)
I use Vue.js old style without any compilation for a reasonably complex app and it’s pleasant enough.
Node.js backend uses Pug for templating, each template includes a script template file. These template files are built with Make and load either a minified bundle (made with terser) or just a bunch of plain JS depending on the value of NODE_ENV.
Node.js backend uses Pug for templating, each template includes a script template file. These template files are built with Make and load either a minified bundle (made with terser) or just a bunch of plain JS depending on the value of NODE_ENV.
Works great :)