我的 SCSS 文件正在复制到 /web
我使用时的文件夹 php app/console assets:install
由于供应商的捆绑包,我真的需要这样做。
基本上,我需要避免被复制所有文件 Assetic 使用的那个。
最佳答案
如果你使用 Symfony 2.6
# make a hard copy of the assets in web/
$ php app/console assets:install
# if possible, make absolute symlinks in web/ if not, make a hard copy
$ php app/console assets:install --symlink
# if possible, make relative symlinks in web/ if not, make a hard copy
$ php app/console assets:install --symlink --relative
来自 http://symfony.com/blog/new-in-symfony-2-6-smarter-assets-install-command
关于Symfony2 - 避免 Assets :install copy to web scss,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29938162/