I am new to symfony 2 and Assetic. I would like to use assetic and Sass for my CSS. I am using Custom Fonts. I create in my package in the "Resources" section the "assets / css" folder, inside which there are _base.scss and main.scss. In my shared folder, I:
In fonts, I have my own custom fonts.
In my SCSS, I extract my fonts and my images as follows:
@include font-face("billabongregular", font-files("/bundles/Mybundle/fonts/billabong-webfont.ttf")); background: $bg_header url("/bundles/Mybundle/images/darkGreyBackground.jpg") fixed no-repeat top center;
I have this path after assets: install, and I have a file under web / mybundle / fonts and web / mybundle / images
When I do php app/console assetic:dump --env=prod --no-debug
I have on my network:
But I don't have folders with folders and font folders. If IO sees the source code in the images, I have this path /bundles/Mybundle/images/darkGreyBackground.jpg
Why don't I have a folder on the Internet? Is it correct to call my images and my fonts with /bundles/Mybundle/images/darkGreyBackground.jpg and / bundles / Mybundle / fonts / billabong-webfont.ttf?
Barno source share