how to use gulp-usemin in twig

170 Views Asked by At

I'm trying to use gulp-usemin to do asset management for my twig files in order to replace assetic. Can I do so while still maintaining the asset() methods advantages to find the relative path of my assets?

1

There are 1 best solutions below

3
On

Asset is a Symfony component that was introduced in 2.7, see: http://symfony.com/doc/current/components/asset/introduction.html

So, yes you can use the asset component standalone.