Questions tagged [grunt-contrib-htmlmin]

A grunt plugin to minify HTML

19 questions
0
votes
1 answer

Parse error while using grunt-contrib-htmlmin?

I am trying to minify HTML files using grunt-contrib-htmlmin.However I keep getting a Parse Error.Below is the command line response. Running "htmlmin:dist" (htmlmin) task Warning: template/applications/applications.html Parse Error:
iCodes
  • 1,382
  • 3
  • 21
  • 47
0
votes
1 answer

grunt htmlmin - cannot get it to minify htm, minifies CSS and JS perfectly

concat grabs all the htm pages and puts them into 1 which is /templates/min/production.htm What I am trying to achieve is /templates/min/production.min.htm, I get no errors in terminal window. module.exports = function (grunt) { // 1. All…
Dally S
  • 619
  • 9
  • 11
0
votes
1 answer

AngularJS Grunt Dist HTML "Cannot read property 'length' of undefined Used --force, continuing"

Hi I have an AngularJS aplication created using Grunt bower and yeoman. I am trying do grunt serve:dist on the application. While minifying some HTML shows error and doesn't minifying even if I do --force I have some HTML pages in my views.…
iCode
  • 8,892
  • 21
  • 57
  • 91
0
votes
1 answer

Yeoman Grunt HTMLMin copy all files in subdirectories to same folder structure in dist

Looking for the right regular expression(s) to mirror the folder structure from "app" to the "dist" folder. E.g. app/components/search/a.html app/components/search/b.html etc. To: dist/components/search/a.html …
binarygiant
  • 6,362
  • 10
  • 50
  • 73
1
2