...

/

Serving CSS via Webpack

Serving CSS via Webpack

Learn to style our apps with CSS via Webpack.

Overview of CSS stylesheets

We’ve been writing CSS in files located in app/assets/stylesheets. Rails will find whatever .css files are there, bundle them all up together, and make the combined CSS available to your views. If we want to use modern CSS tools or techniques, such as CSS modules or Post CSS, it’s not possible to do so with the default configuration Rails provides. ...