kriswallsmith/assetic — Issue #163: Assetic seems to override generated asset with one from another bundle
Author: jonathaningram
Created: 2011-11-29 06:31:26+00:00
State: open

OK, I've basically got a `CoreBundle`, a `CompanyBundle`, a `ProjectBundle` and a `UserBundle`. Each has a layout that includes its own stylesheet. The Company and Project bundle extend the Core bundle layout and so include the core CSS asset as well as their own asset.

In production, I generate the assets like this:

```
./app/console --env=stag assetic:dump -v --no-debug
Dumping all stag assets.
Debug mode is off.

[file+] /var/www/mysite.com/releases/20111129054914/app/../web/css/cd2e95d.css
/var/www/mysite.com/releases/20111129054914/src/Jbi/UserBundle/Resources/assets/sass/all.scss
[file+] /var/www/mysite.com/releases/20111129054914/app/../web/css/41628f9.css
/var/www/mysite.com/releases/20111129054914/src/Jbi/CoreBundle/Resources/assets/sass/core.scss
[file+] /var/www/mysite.com/releases/20111129054914/app/../web/css/1a57ca1.css
/var/www/mysite.com/releases/20111129054914/src/Jbi/CompanyBundle/Resources/assets/sass/all.scss
[file+] /var/www/mysite.com/releases/20111129054914/app/../web/css/0fd3a41.css
/var/www/mysite.com/releases/20111129054914/src/Jbi/ProjectBundle/Resources/assets/sass/all.scss
```

So you can see that for the Project bundle, the asset should be named `0fd3a41.css`.

When I view the source of a page in the Project bundle, it includes the `

```

But the contents of this file are:

```css
.jbi-security-login-forgot-password {
float: right;
margin-right: 55px;
line-height: 28px;
}
```

Which is identical to the CSS file from the user bundle, **not** the project bundle.

What do you think the issue is?