Compile swig templates with gobble.
First, you need to have gobble installed - see the gobble readme for details. Then,
npm i -D gobble-swig
gobblefile.js
var gobble = require('gobble')
module.exports = gobble('templates').transform('swig', {cache: false})
See the swig options for details.
MIT