# Main.css file blank

**URL:** https://discourse.roots.io/t/main-css-file-blank/1982
**Category:** uncategorized
**Created:** 2014-07-22T17:53:18Z
**Posts:** 5

## Post 1 by @kjprince — 2014-07-22T17:53:18Z

Ok I switched over to Roots 7.0 and also switched from Sass to Less.

Everything looks good in dev, but after deploying to production my `main.min.css` file is blank.

In dev I’m loading `main.css`

Can someone explain?

---

## Post 2 by @kjprince — 2014-07-22T17:56:21Z

Ok looks like they aren’t being committed to my repo. Though I don’t see anything in the `.gitignore` file to prevent them from being committed.

---

## Post 3 by @kjprince — 2014-07-22T18:02:27Z

Ok I’ve answered my own question.

Roots 7.0.0 uses a `.gitignore` file in the theme root, which prevents assets (js /css / etc) from being committed to your repo.

But I deploy with git…So I just commented out the appropriate lines.

Here’s an alternative method:  
[http://discourse.roots.io/t/using-roots-7-0-with-git-deploy/1871](http://discourse.roots.io/t/using-roots-7-0-with-git-deploy/1871)

---

## Post 4 by @cfx — 2014-07-22T18:48:58Z

Is your `main.min.css` file present in your local environment? You probably need to run `grunt build`. Roots tells WP to load different assets depending on your environment: [How to correctly add bxslider to my theme](http://discourse.roots.io/t/how-to-correctly-add-bxslider-to-my-theme/1952/12) (disregard the last sentence in that post).

---

## Post 5 by @kjprince — 2014-07-25T22:10:04Z

Thank you.

I hadn’t noticed that Roots 7.0.0 ignores the assets directory in it’s .gitignore file.
