jekyll-assets icon indicating copy to clipboard operation
jekyll-assets copied to clipboard

Using existing gem for sprocklets (sprockets-media_query_combiner)

Open bert-bruggeman opened this issue 6 years ago • 2 comments

How can I use sprockets-media_query_combiner with jekyll-assets

Information from (https://github.com/aaronjensen/sprockets-media_query_combiner):

If you're using Sprockets on its own you'll need to register the bundle processor: register_bundle_processor 'text/css', Sprockets::MediaQueryCombiner::Processor

Does this require a custom plugin to register the bundle processor?

bert-bruggeman avatar Jan 02 '19 13:01 bert-bruggeman

I don’t restrict what you do with sprockets. You’ll need a Jekyll plug-in in the form of an rb file in _plugins that Jekyll loads... but apart from that there is nothing special going on with our Sprockets handling.

envygeeks avatar Jan 02 '19 13:01 envygeeks

@bert-bruggeman Did you figure out how to do this?

BrianBravo avatar Feb 18 '20 19:02 BrianBravo