DEV Community

Discussion on: Critical CSS with Rails and Webpacker - SprocketsLess Part 1

Collapse
 
chrispycode profile image
chrispycode • Edited

Hey nice article do you know by any chance how I could import .less files into the critical.scss

Collapse
 
adrienpoly profile image
Adrien Poly

Hello
I don't really use less. but anyhow if you are able to get less files into webpacker (this could help github.com/rails/webpacker/issues/...). Then what I describred will work exactly the same. PostCSS gets the output of Webpacker so at this point it is a CSS file (not anymore Less, Sass, Scss etc)

Collapse
 
chrispycode profile image
chrispycode

Thank you, I try it out