symfony3 Asset Management with Assetic

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

When using the Assetic Bundle, according to the Symfony documentation, please be aware of the following:

Starting from Symfony 2.8, Assetic is no longer included by default in the Symfony Standard Edition. Before using any of its features, install the AsseticBundle executing this console command in your project:

$ composer require symfony/assetic-bundle

There are other steps you have to take. For more information go to: http://symfony.com/doc/current/assetic/asset_management.html

Parameters

NameExample
Path'static/images/logo/logo-default.png'

Remarks

The folder for the publicly accessible assets in a standard Symfony3 project is "/web". Assetic uses this folder as root folder for the assets.



Got any symfony3 Question?