terraform icon indicating copy to clipboard operation
terraform copied to clipboard

Minify consistently

Open kennethormandy opened this issue 11 years ago • 3 comments
trafficstars

Suggested by @silentrob, perhaps we shouldn’t use any of the preprocessor’s compression, and instead use something else to do it consistently? ianstormtaylor/minify looks like it could be useful for that.

kennethormandy avatar Jan 16 '14 12:01 kennethormandy

It would also be great if terraform also minifies *.css, *.html and *.js files which were not preprocessed. Right now a file is only minified if it's also preprocessed.

Minification should be configurable: on/off - maybe even the module to use.

fluidsonic avatar Feb 13 '14 15:02 fluidsonic

You’re right, we need to minify those too. I don’t think it’ll be configurable though, except maybe if you’re using Harp as middleware.

kennethormandy avatar Feb 13 '14 16:02 kennethormandy

Not opposed to this. It just isn't super urgent. It seems fairly low risk to make it configurable.

sintaxi avatar Feb 13 '14 21:02 sintaxi