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...
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'...
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...
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...
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...
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...
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 }}"...
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...
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...
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...
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...
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 ...
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 ...
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...
2
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 }}" />
...
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...
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?
1 Next >
© 2022 - 2024 — McMap. All rights reserved.