krainboltgreene
krainboltgreene

Reputation: 1861

Asset Pipeline only creates application.css, but not for any of the required stylesheets

So here's what the application.css.scss file looks like:

// require_tree .

body { color: red; }

And there are 3 other css files in the app/assets/stylesheets/ directory.

The output? A single stylesheet tag in head, pointing at an uncompressed application.css.

Oddly enough the JavaScript is doing just fine, requiring all it needs.

I've checked this repository vs other repositories: No difference as far as I can tell in config variables

Upvotes: 0

Views: 91

Answers (2)

bhuga
bhuga

Reputation: 1302

I believe you're missing an =. Try this:

/*
 *= require_tree .
*/

body {
  color: red;
}

Upvotes: 1

Benjamin Tan Wei Hao
Benjamin Tan Wei Hao

Reputation: 9691

One of the functions of the asset pipeline is the lump all the css into one file. Is there some styles which are not working as a result of the compilation?

Upvotes: 0

Related Questions