while the javascript part works perfectly the css part don't. The boostrap.scss gets compiled into a css file. But the imports never get imported. The resultung CSS file looks like this:
// Core variables and mixins
@import "../../../../../../../twbs/bootstrap-sass/assets/stylesheets/bootstrap/variables";
@import "../../../../../../../twbs/bootstrap-sass/assets/stylesheets/bootstrap/mixins";
// and so on
don't know if this is a problem of the bundle itself or if it even should support this...
Okay actually the problem is the ? in {% stylesheets filter="?scssphp" so it only gets compiled in debug-off envs. When I remove the questionmark it tries to compile but fails with
[exception] 500 | Internal Server Error | Symfony\Component\Debug\Exception\ContextErrorException
[message] Notice: Array to string conversion
[1] Symfony\Component\Debug\Exception\ContextErrorException: Notice: Array to string conversion
at n/a
in /htdocs/project/vendor/leafo/scssphp/src/Compiler.php line 2160
While assetic:dump --env=prod tells me:
[RuntimeException]
The source file "/htdocs/project/app/../vendor/twbs/bootstrap-sass/assets/stylesheets/_bootstrap.scss" does not exist.
and yes it does not exists. There's only a boostrap.scss file without _.
I like to merge all my CSS files and JS files into one big file. For this have the following code in my base twig template:
and
while the javascript part works perfectly the css part don't. The
boostrap.scss
gets compiled into a css file. But the imports never get imported. The resultung CSS file looks like this:don't know if this is a problem of the bundle itself or if it even should support this...
And yes I have the registered a SASS compiler:
Okay actually the problem is the ? in
{% stylesheets filter="?scssphp"
so it only gets compiled in debug-off envs. When I remove the questionmark it tries to compile but fails withWhile
assetic:dump --env=prod
tells me:and yes it does not exists. There's only a
boostrap.scss
file without_
.