FAQ Database Discussion Community


Assetic SCSS filter not dumping CSS files

symfony2,sass,vagrant,assetic,puphpet
My Symfony2 configuration is not (re)gerating CSS files from SCSS using asset management with Assetic when I dump my assets in the CLI with "php app/console assets:install" all files are there, but in my development environment nothing happens, a 500 error appears when my browsers tries to find the CSS...

CSS changes not updating on site

css,symfony2,caching,vagrant,assetic
Today I started changing some CSS on a Symfony (2.6) project. I added some styling to my newly created css file and everything was working fine. My problem occured when I went to add another style and nothing happened. I checked the dev window and couldn't find my styles anywhere....

Symfony files which are included in CSS are not found when using assetic

css,symfony2,twig,assetic
I'm using Symfony with Twig and I use assetic. The problem is that my CSS file includes other CSS files like that: @import url(ie8.css); @import url(blocks.css); @import url(plugins.css); @import url(app.css); And these files are not found when webpage is displayed. Same happens with fonts and images. How do I solve...

AsseticBundle Configuration - Explaination

symfony2,assetic
there is no real detail in the documentation about the AsseticBundle Config - in config.yml. assetic: debug: "%kernel.debug%" use_controller: enabled: "%kernel.debug%" profiler: false read_from: "%kernel.root_dir%/../web" write_to: "%assetic.read_from%" java: /usr/bin/java node: /usr/bin/node ruby: /usr/bin/ruby sass: /usr/bin/sass # An key-value pair of any number of named elements variables: some_name: [] bundles: #...

Variables don't work inside partials with assetic in Symfony2

symfony2,assetic,compass
I have a Symfony2 project using compass and assetic (or atleast trying too). I have a main file called app.scss with all the imports of the partials and compass too and it compiles correctly, but when I create a variable in one partial and try to access it in another,...

symfony2: using assetic-dump, is possible to dump just one file?

symfony2,assetic
After running php app/console assetic:dump --env=prod all the assets are dumpped. Is there any way to dump only one file?...

Runtime exception when trying to dump assetic for Symfony2 project using Windows 7

windows,symfony2,coffeescript,sass,assetic
I am using Windows platform (please do not laugh at me). And I am trying to build a Symfony2 project using asseti in my localmachine that is running Windows 7. Now I can not for the love of my life figure out why it is not dumping the assetic files....

How to use vendor bundles resources in Symfony2

php,symfony2,composer-php,assetic
I know this is a very basic question and I'm pretty puzzled that I couldn't find a good answer for that. Let's say I installed twbs/bootstrap package with Composer, so it lands in its proper vendor/twbs/bootstrap/ directory. Now, what do I need to do to make it actually useful, i.e....

Symfony 2.6 - Add jQuery file to Twig

javascript,jquery,symfony2,twig,assetic
I'm a beginner developing a web app in Symfony2 and Twig for Google Chrome. I have read a lot of posts about how to add javascripts to a twig file like these: Where do Symfony2 shared CSS and JS assets go, best practice wise? Including stylesheets and Javascript to Twig...

How to use condition if into assetic

symfony2,assetic
I have an html template and there is a code with condition --> <!--[if !IE]> --> <script type="text/javascript"> window.jQuery || document.write("<script src='assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>"); </script> <!-- <![endif]--> <!--[if IE]> <script type="text/javascript"> window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>"); </script> <![endif]--> I'd like to know how to use this if into this assetic {% block...

Symfony 2 - Access public asset directly

symfony2,assets,assetic
I have a folder called "cdn" in my /web folder and i would like to give a public access to a javascript file in there (basically, it's a bookmarklet). I don't want to use a controller to serve the file but rather let the server serve the file directly. How...