Assetic isn't merging bootstrap.css and bootstrap-responsive.css
Asked Answered
O

1

0

I am using Symfony2 and Assetic.

The assetic runs fine on dev (debug = true), however it is not merging the bootstrap.css and bootstrap-responsive.css when I run the dump for prod (debug = false).

Any thoughts? Tkx

Obsessive answered 27/7, 2013 at 3:12 Comment(0)
O
0

In order to temporary solve the issue, I needed to put the bootstrap.css outside the twig ({% stylesheets), example:

 /* Instead of: */
{% stylesheets 'bundles/foobar/css/*' %}
<link rel="stylesheet" href="{{ asset_url }}">
{% endstylesheets %}


/* I am doing: */
<link rel="stylesheet" href='/bundles/foobar/css/bootstrap.css'>
{% stylesheets
'bundles/foobar/css/bootstrap-responsive.css'
'bundles/foobar/css/chosen.css'
'bundles/foobar/css/custom.css'
%}
<link rel="stylesheet" href="{{ asset_url }}">
{% endstylesheets %}
Obsessive answered 1/8, 2013 at 0:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.