assetic Questions

1

Okay so I've been searching all over for some input into this but haven't found anything to help directly (only mentions of this problem in relation to something else). Basically I'm having proble...
Xenomorphic asked 27/9, 2013 at 17:59

3

I just started with symfony, on template I simply define: {% javascripts "@MyBundle/Resources/public/js/app.js" %} <script src="{{asset_url}}"></script> {% endjavascripts %} right b...
Oblate asked 27/4, 2015 at 5:19

4

I store img in Acme/DemoBundle/Resources/public/img/weather_icon/blizzard.gif I want to put this img in my template so I did <img src="{{ asset('bundles/acmedemo/img/weather_icons/blizzard.gif'...
Michelson asked 6/5, 2013 at 11:34

1

I generate my file with code like this: {% block head_stylesheets %} {% stylesheets filter='?uglifycss' '@MyBundle/Resources/public/less/myfile.less' %} <link href="{{ asset_url }}&quo...
Conchoid asked 8/6, 2017 at 7:30

9

Solved

This question seems to have been asked multiple times but none of the solutions work for me. I'm in my prod environment, here is what I've done: cleared cache before/after doing anything attemp...
Bonniebonns asked 13/7, 2012 at 0:42

5

Solved

I'm trying to use assetic in symfony2 to manage my css. The links are generated fine. However, no files are generated. Here's my configuration: Layout.html.twig {% stylesheets '@FooBundle/Res...
Suspension asked 2/6, 2012 at 15:14

3

Solved

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.twi...
Very asked 20/3, 2017 at 8:31

3

The cssrewrite filter produces wrong urls after the rewrite: i have my bundle which contains one .less file located in Resources/public/less/common.less I also have one image,located in Resource...
Fuge asked 31/10, 2013 at 23:10

4

Solved

I include my CSS with the following code: {% stylesheets 'bundles/majorproductionssewingdivasite/css/*.css' filter='cssrewrite' %} <link rel="stylesheet" type="text/css" href="{{ asset_url }}"...
Bluebeard asked 28/12, 2012 at 17:12

2

Solved

I'm using Symfony 3.3 and the assetic bundle. I have this in my config.yml: assetic: debug: '%kernel.debug%' use_controller: '%kernel.debug%' filters: cssrewrite: ~ typescript: bin: "%kerne...
Berke asked 16/9, 2017 at 7:56

4

Solved

I have my custom resources directory for my bundle where there are some files: /longpathtoSymfony/src/MyOwn/Bundle/MyOwnBundle/Resources/public |-- bootstrap | |-- css | | |-- bootstrap-theme.css ...
Glassworker asked 23/9, 2013 at 16:43

1

I ran php app/console assetic:dump to publish assetics for a Symfony2 application, but I got this error: [Assetic\Exception\FilterException] An error occurred while running: '/usr/bin/java' '-ja...
Uncontrollable asked 14/11, 2016 at 13:2

3

Our Symfony2 webapp uses the Assetic watcher in development mode to re-compile assets on the go. The webapp runs in a Docker container which runs in a Vagrant VM (Ubuntu 12.04 Precise). The host i...
Mikkimiko asked 17/1, 2014 at 16:13

6

Solved

When running app/console assetic:dump, I am getting: Path to node executable could not be resolved What does it mean and how to fix this? When trying to browse project via app_dev.php, I am g...
Piloting asked 5/3, 2014 at 12:45

6

Solved

Problem I have a CSS file with some paths in it (for images, fonts, etc.. url(..)). My path structure is like this: ... +-src/ | +-MyCompany/ | +-MyBundle/ | +-Resources/ | +-assets/ | +-css/ | +-s...
Presbyopia asked 29/2, 2012 at 14:6

2

LESS has the power to @import other LESS files. This question is intended to find a solution to import LESS files within LESS files from another Bundle in a Symfony project I'm working on a Symfo...
Ellipsoid asked 22/2, 2013 at 15:39

5

I'd like to globally configure the output dir of where assetic dumps my JS files. Currently, they always go to web/js/*. I want to change this to web/js/compiled/*. It's possible to specify this ...
Monogenetic asked 23/2, 2012 at 12:19

2

I am trying to setup symfony2 to compile sass files. However every time i run php app/console assetic:dump i get the following error: Individual stylesheets must be in the sass directory. This ...
Considerate asked 28/9, 2014 at 11:35

4

I'm looking for ways to make Symfony 2 Assetic 1.0.2 development easier. I use Assetic for dumping/publishing my assets. Currently I keep running this command in the background: php app/console a...
Mckeehan asked 25/5, 2012 at 7:46

2

How to include css font icon libraries istalled via composer in /vendor dir (fontawesome for example). Include: {% stylesheets filter='cssrewrite' '%kernel.root_dir%/../vendor/fortawesome/font-a...
Kephart asked 3/5, 2014 at 11:23

5

Solved

Is there a way to pass a variable to the Assetic method in templates {% stylesheets '@SomeExampleBundle/Resources/views/ SOMEVAR /css/*' %} <link rel="stylesheet" href="{{ asset_url }}" /> ...
Randy asked 27/11, 2011 at 12:32

1

Solved

I have installed Symphony2 framework and created my own bundle. I am using assetic for my js and css files. I am running ubuntu on my server and mint on my local machine. When I access the app_de...
Smilacaceous asked 8/1, 2015 at 11:6

6

Solved

I'm using Assetic with the compass filter to pass and compile .scss files. This part of the setup seems to work fine. However, my understanding was that in the app_dev environment, Symfony 2 would ...
Distract asked 10/7, 2012 at 17:58

3

Solved

I need some tips on how to work with assets in Symfony 2. For example, do we have to always perform the assets:update every time an image is added ? I know Assetic take care of the management on cs...
Uppish asked 29/3, 2012 at 18:19

3

Solved

After running php app/console assetic:dump --env=prod all the assets are dumpped. Is there any way to dump only one file?
Effulgent asked 15/3, 2015 at 23:33

© 2022 - 2024 — McMap. All rights reserved.