lee-houghton / dusterjs

Node script to watch & compile directory of dust.js templates
4 stars 4 forks source link

How to concat to single file with duster.watch lib method? #6

Open jamesstar89 opened 7 years ago

jamesstar89 commented 7 years ago

See code example below, what else do I need to update so I can output to a single file, e.g. templates.js?

Thank you.

duster.watch( [ __dirname + '/../src/views', __dirname + '/../src/views/layouts' ], __dirname + '/../src/views/', {}, function (err, results) { if (err) return console.error("** Error:", err); console.log("Templates updated at", new Date().toLocaleTimeString()); });

jamesstar89 commented 7 years ago

Sorry, figured it out...

{ concat: true }