assetic Questions
4
Solved
I'm a beginner at Symfony2, and I have some problems about putting resource like css, js, images...
I just read this document how to use Assetic
But I can't figure out what is the best way to put m...
1
I can't believe that I'm not able to google this...
So, I have a symfony2 application, and I installed jQuery UI with Composer. That means i have project structure like this:
/app/
/src/
/vendor/...
3
Solved
I am currently using a bootstrap template that uses a few JS files. To get them to load I placed all the required JS files in the app/Resources/views/base.html.twig file. Here is a snippet of the c...
2
Solved
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 lif...
Aleph asked 2/2, 2015 at 0:15
2
Solved
TL:DR; Adding type="application/dart" makes Assetic ignore the filter flag filter=MyCustomFilter.
Removing the latter attribute type triggers filter=MyCustomFilter just fine. But I need t...
3
Solved
I'm working on a project with friends, using git. Yesterday, a friend pushed some stuff relative to his bundle, but after I pull it, I got this strange error message
An exception has been thrown ...
2
Solved
I'm trying to include my header into another template, not extending, like this
{% include '@Foo:Bar:_header.html.twig' %}
That header, contains this
<!DOCTYPE html>
<html lang="en">...
3
I work a multi-localization project using Symfony2 , and i separate ( CSS/Images ) on different folder based on current user local.
Folder Structure Ex:
Resources\
public\
css\
ar\
home.css
...
3
Solved
I followed the guide on the very bottom of this article: http://symfony.com/doc/current/cookbook/assetic/asset_management.html
I have this code:
{% javascripts
...
output='js/dist/dist.js'
%...
1
I'm trying to use a Gaufrette Stream Wrapper to tell the AsseticBundle where to dump the project assets but I can't make it recognize them.
This is how the knp_gaufrette section of my config_dev.y...
1
there is this cool feature Source Maps in html5. In my Symfony2 project I use jQuery mobile which uses this feature (I use the BmatznerJQueryMobileBundle for integration).
In my <head> i do ...
Intercalate asked 11/6, 2014 at 20:54
3
For my prod environment I want to use the UglifyCSS filter configured as follows (config_prod.yml):
assetic:
filters:
uglifycss:
node: /usr/bin/env node
bin: /usr/local/bin/uglifycss
apply_to...
1
Solved
In Symfony2, what is the difference between assetic:dump and assets:install? In what scenarios should each of these commands be used, and in what order (if order is relevant)?
1
Here's my directory structure (this is just a test project):
stan@mypc:/generate_assets$ sudo tree -L 3 -p
.
├── [drwxr-xr-x] assets
│ └── [drwxr-xr-x] css
│ ├── [-rw-r--r--] test1.css
│ └──...
3
Solved
I'm using Symfony2, with Assetic and Twig. I have various frontend libraries - Backbone, jQuery, jQuery UI, and Bootstrap. Both Bootstrap and jQuery UI include CSS and JS files.
Is there a way tha...
2
I'm including CSS stylesheets in my template like so:
{% stylesheets
"@SomeBundle/Resources/assets/css/default.css.twig"
"@SomeBundle/Resources/assets/css/global.css.twig"
%}
<link rel="styl...
1
EDITED:
I am using assetic with symfony2. Each time I try to load a page, on requesting for the JS and CSS files, my browser gets a 500 error. If I type the address of that resource in address bar,...
2
Solved
I want to exclude my handlebars.js template from my twig files.
So I created a new directory in the public folder named hbs where I placed all my handlebar templates. How do I tell assetic to rend...
Deepseated asked 25/3, 2013 at 11:53
3
I'm stepping into deploying my Symfony app using Capifony. When Capifony executes assetic:dump I get a runtime Exception.
[RuntimeException]
Unable to write file
{path}/releases/20130314071536...
Kannada asked 14/3, 2013 at 9:19
1
I am building my own user management system in Symfony2 (not using FOSUserBundle) and want to be able to force users to change their password.
I have setup an EventListener to listen to the kernal...
Prowess asked 17/10, 2013 at 12:20
1
Solved
For some reason I can't load the css files.
Here is the structure of the bundle that I use
BD
WebsiteBundle
public
css
And here is how I try to load the css files
{% stylesheets 'bundles/bd...
2
Solved
I want to use the Twitter Bootstrap with Symfony 2 without using bundles. I've managed to install MopaBootstrapBundle, but decided to remove it and use plain TB.
Setup
composer.json
"require": {...
Rawboned asked 18/9, 2013 at 11:34
1
Solved
I'm looking to find out if there's a clean way to add JS and CSS from included templates.
So, for example, if layout.html.twig has:
{% include 'GenericBundle:Generic:page.html.twig' with {'data':...
2
Solved
I use an angular front end with Symfony. When I declare my $routeProvider I have to include my /app_dev.php/ becuase I set the html 5 mode to true: $locationProvider.html5Mode(true);.
$routeProvid...
Dressage asked 19/8, 2013 at 17:27
1
I am using Symfony2 and Assetic.
The assetic runs fine on dev (debug = true), however it is not merging the bootstrap.css and bootstrap-responsive.css when I run the dump for prod (debug = false)....
Obsessive asked 27/7, 2013 at 3:12
© 2022 - 2024 — McMap. All rights reserved.