cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to order the CSS assets in Magento 2.2?

Is there a way to order the CSS assets in Magento 2.2?

Is there a way to order the CSS assets in Magento 2.2?

 

I want to include https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css Bootstrap's CSS before styles-m and styles-l css files.

 

I'm not seeing where to do this at, though. Seems like the most basic thing in the world of web design / web dev. Any ideas?

1 REPLY 1

Re: Is there a way to order the CSS assets in Magento 2.2?

Hey @aregowe,

Standard Magento functionality doesn't have what you need by default. Take a look at this extension: https://github.com/quickshiftin/mage2-ordered-assets, or check out analogs at magento-hackathon. There surely was one.

---------------------------------------------------------

If you've found one of our answers useful, please give 'Kudos' or 'Accept as Solution'.