assetic

Install vendor resources in web directory

痞子三分冷 提交于 2019-12-02 03:27:47
问题 I have in my bundle in Resources a directory called vendor which contains JavaScript libraries, etc. Some of those vendors contain images. I can import css/less/js files using assets with: assetic: assets: flot: inputs: - @MyBundle/Resources/vendor/flot/jquery.flot.js - @MyBundle/Resources/vendor/flot/jquery.flot.time.js filters: - ?yui_js However if vendor contains images, I have no idea, how to put them into web/ directory. I'd rather not symlink them manually. 回答1: Assetic's asset

Unable to load Sass / Compass after installing RVM, to use with Assetic in Symfony2

筅森魡賤 提交于 2019-12-02 03:15:57
I was trying to use Capifony, which requires Capistrano, which requires Ruby. But my apt version of ruby was old and was throwing syntax errors. So then I installed RVM and did this: $ rvm use 1.9.3 $ rvm --rvmrc --create use 1.9.3@myapp $ gem install sass [--pre] $ gem install compass [--pre] $ updatedb $ locate sass | grep myapp | grep bin $ locate compass | grep myapp | grep bin Copied and pasted those paths to config.yml sass: bin: /usr/local/rvm/gems/ruby-1.9.3-p194@myapp/gems/sass-3.2.0.alpha.277/bin/sass #apply_to: "\.scss$" compass: bin: /usr/local/rvm/gems/ruby-1.9.3-p194@myapp/gems

Install vendor resources in web directory

五迷三道 提交于 2019-12-02 00:54:15
I have in my bundle in Resources a directory called vendor which contains JavaScript libraries, etc. Some of those vendors contain images. I can import css/less/js files using assets with: assetic: assets: flot: inputs: - @MyBundle/Resources/vendor/flot/jquery.flot.js - @MyBundle/Resources/vendor/flot/jquery.flot.time.js filters: - ?yui_js However if vendor contains images, I have no idea, how to put them into web/ directory. I'd rather not symlink them manually. Assetic's asset collections like assetic: assets: collection_name: inputs: - ... output: - desired_filename # relative to assetic

assetic.ERROR “DoctrineBundle:Collector:db.html.twig” contains an error: Unknown “profiler_dump” function

我们两清 提交于 2019-12-01 18:14:53
I am trying to send emails with Symfony. Everything works perfect locally. But on server I get following errore in prod.log : assetic.ERROR: The template "SecurityBundle:Collector:security.html.twig" contains an error: Unknown "profiler_dump" function in "SecurityBundle:Collector:security.html.twig" at line 180. assetic.ERROR: The template "DoctrineBundle:Collector:db.html.twig" contains an error: Unknown "profiler_dump" function in "DoctrineBundle:Collector:db.html.twig" at line 241 These are bundles I have in composer.json "php": ">=5.5.9", "symfony/symfony": "3.1.*", "doctrine/orm": "^2.5",

assetic.ERROR “DoctrineBundle:Collector:db.html.twig” contains an error: Unknown “profiler_dump” function

旧街凉风 提交于 2019-12-01 17:38:03
问题 I am trying to send emails with Symfony. Everything works perfect locally. But on server I get following errore in prod.log : assetic.ERROR: The template "SecurityBundle:Collector:security.html.twig" contains an error: Unknown "profiler_dump" function in "SecurityBundle:Collector:security.html.twig" at line 180. assetic.ERROR: The template "DoctrineBundle:Collector:db.html.twig" contains an error: Unknown "profiler_dump" function in "DoctrineBundle:Collector:db.html.twig" at line 241 These

How can I get Assetic to compile SCSS on Zend Framework on Windows?

风流意气都作罢 提交于 2019-12-01 14:20:16
My site is on Zend Framework and uses Assetic to compile SCSS and minify it. It works wonderfully when I'm developing on Ubuntu. Sometimes I need to develop on Windows (WAMP) instead of Ubuntu. I haven't been able to get Assetic to work on Windows. I've found many Q&As about it but no answers seem to apply to me. E.g. I don't think I have a config.yml file anywhere. How to have Assetic + sass work with Symfony2 in Windows? How to use SCSS filter in Symfony2 under Windows? Here is an error: Assetic\Exception\FilterException: An error occurred while running: "C:\Ruby193\bin\sass.bat" "--load

Symfony2, loading css files without cache

我与影子孤独终老i 提交于 2019-12-01 09:01:53
Currently i'm doing design of site based on symfony2, question is how to disable cache of css files? Now if i change something in css file - nothing changes in browser. When i try to cache:clear - still nothing. config.yml : # Assetic Configuration assetic: debug: "%kernel.debug%" use_controller: true #bundles: [ ] #java: /usr/bin/java filters: cssrewrite: ~ #closure: # jar: "%kernel.root_dir%/Resources/java/compiler.jar" yui_css: jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar" and in twig {% stylesheets filter="cssrewrite" output="css/general.css" "@EveCommonBundle/Resources

Foundation5 with Compass and Assetic in Symfony2

两盒软妹~` 提交于 2019-12-01 07:39:04
I want to config Foundation5 with Compass and Assetic in Symfony2, I have installed foundation as they say at http://foundation.zurb.com/docs/sass.html : npm install -g bower grunt-cli gem install foundation In config.yml have configured in this way : # Assetic Configuration assetic: debug: %kernel.debug% use_controller: false filters: compass: require: ['zurb-foundation'] apply_to: ".(scss|sass)$" Then I have imported in a base SCSS file @import "foundation"; but when I run : php app/console assetic:dump I have the following error : [Assetic\Exception\FilterException] An error occurred while

Foundation5 with Compass and Assetic in Symfony2

十年热恋 提交于 2019-12-01 04:46:50
问题 I want to config Foundation5 with Compass and Assetic in Symfony2, I have installed foundation as they say at http://foundation.zurb.com/docs/sass.html : npm install -g bower grunt-cli gem install foundation In config.yml have configured in this way : # Assetic Configuration assetic: debug: %kernel.debug% use_controller: false filters: compass: require: ['zurb-foundation'] apply_to: ".(scss|sass)$" Then I have imported in a base SCSS file @import "foundation"; but when I run : php app/console

Assetic not creating combined links

梦想与她 提交于 2019-12-01 00:09:20
Just having a few problems trying to get Assetic to generate the combined links in rendered webpages. The files themselves are being generated fine, but in the web page in the production environment, I'm continuing to see the seperate file URLs (which do not work in production, as those uncombined files aren't available). In a template, I have: {% stylesheets '@TBundle/Resources/public/css/bootstrap/bootstrap.css' '@TBundle/Resources/public/css/bootstrap/bootstrap-responsive.css' '@TBundle/Resources/public/css/jquery-selectbox/jquery.selectBox.css' %} <link href="{{ asset_url }}" rel=