gruntjs - Grunt / Assemble - output html minification -


I am using a static site to create and collect my HTML pages and I reduce my HTML Want to do

So I think there would be a small substitute on collecting a plug-in that runs handler templates with a data set.

There is no mention of it on assembled docs;

But it mentions that Handlers-Helper-Minwise docks; - But it has no effect.

I can not find anything else on the Internet, of course this is a more general request ...

  grunt.initConfig ({gather: {option: { Property: '../source', data: ['package.jason', 'data / *. {Json, yml}'], partial: 'template / module / * .hbs', ext: .html', subsidiary : 'Templates / helpers / * .js', layout: 'templates / layouts / masterHBS', removeHBSSwitSpace: true, minnow: {removeAttributeQuotes: true, collapseWhitespace: true}}, dev: {options: {output: false} Files: [[ T: Really, cwd: 'templates / Page', src: [ '* .hbs'], Dest: '../source'}]}}});  

You must explicitly register the {{minify}} Authors in the Grant File < / P>

  Assistant: ['handlebars-helper-minify', 'templates / helpers / *. Js']  

Alternatively, handlebars-helper- package.json in your project devDependencies and Keyboard Minimize .

  {"Deidedependencies": {"handlebars-helper-minify": "~ 0.1.1"}, "keywords": ["handlar-assistant-minify"]}  

Wrap it with your Master.hbs layout, for example {{minify}}

  {{# Minify}} {{& gt; Header}} {{& gt; Body}} {{> Footer}} {{/ minify}}  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -