I'm using hbsfy (handlebars templating package) as a transform for browserify in a grunt file. How do I pass the -t
or --transform
argument to the hbsfy transform?
grunt.initConfig({
browserify: {
build: {
src: 'src/js/app.js',
dest: 'app.js',
options: {
transform: ['browserify-shim', 'hbsfy'],
browserifyOptions: {
debug: true,
},
},
},
});
If I were to use browserify conventionally the code would look like:
browserify -t [ hbsfy -t ] main.js > bundle.js
How do I get the -t when using grunt-browserify?