Munter / grunt-reduce

A grunt kitchen that reduces your web ingredients down to their essence for optimal serving. Bon appétit!
MIT License
184 stars 13 forks source link

Option not to inlining CSS & JavaScript into HTML #2

Open japboy opened 11 years ago

japboy commented 11 years ago

Is it possible?

Munter commented 11 years ago

This is entirely possible.

I would probably expose that as an integer representing a byte threshold under which an inlineable asset will be inlined, just like with the base64 image inlining.

I will need to get this change upstream in assetgraph-builder before I can release a new version though.

papandreou commented 10 years ago

This feature exists in assetgraph-builder now: https://github.com/assetgraph/assetgraph-builder/blob/master/lib/transforms/buildProduction.js#L7