middleman-minify-html icon indicating copy to clipboard operation
middleman-minify-html copied to clipboard

Ignore files

Open RobertFischer opened this issue 11 years ago • 3 comments

There's no documentation if you can ignore files (a la's "minify_javascript" config.ignore). Can you? If so, let me know how and I'll document it up. If not, I'm willing to add it...but I don't want to burn time on it if the functionality already exists.

RobertFischer avatar Jul 29 '14 20:07 RobertFischer

No, that current functionality isn't available here. We just farm out to the HTMLCompressor Rack middleware. Seems like it should be possible to extend that class with some logic for ignoring certain paths (see the minify_css implementation).

tdreyno avatar Jul 29 '14 21:07 tdreyno

Would you accept a pull request if I added it in?

RobertFischer avatar Aug 05 '14 21:08 RobertFischer

Definitely.

tdreyno avatar Aug 06 '14 16:08 tdreyno