I want to minify my Handlebars HTML templates before compiling them. I was wondering is it possible to pipe the output of grunt-contrib-htmlmin as input to grunt-contrib-handlebars without making an intermediate file.
When a task is run, Grunt looks for its configuration under a property of the same name. Multi-tasks can have multiple configurations, defined using arbitrarily named "targets." In the example below, the concat task has foo and bar targets, while the uglify task only has a bar target.
config. Access project-specific configuration data defined in the Gruntfile . Note that any method marked with a ☃ (unicode snowman) is also available directly on the grunt object, and any method marked with a ☆ (white star) is also available inside tasks on the this object.
grunt-este-watchby Daniel SteigerwaldRun predefined tasks whenever watched file changes.
The point of the server task is to have quick and dirty access to static files for testing. grunt server IS NOT a production server environment. It really should only be used during the grunt lifecycle to get static testing assets to the testing environment.
Grunt by design does not support piping. Take a look at gulp, where piping is the main concept.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With