grunt-contrib-jst icon indicating copy to clipboard operation
grunt-contrib-jst copied to clipboard

Add commonjs option

Open willdady opened this issue 10 years ago • 3 comments

In addition to the amd option it would be great if there was a commonjs option, grunt-contrib-handlebars has this option and has an almost identical API to this.

This will allow the output to be 'required' in a Browserify/Node setup. Alternatively the ability to set the output file's header/footer would be good too.

willdady avatar Sep 16 '14 06:09 willdady

+1

SimonChong avatar Nov 01 '14 03:11 SimonChong

+1

dbrugne avatar Sep 03 '15 09:09 dbrugne

+1 - if you want to use this with TypeScript & Node, CommonJS is required.

fkereki avatar Oct 07 '15 17:10 fkereki