Symfony2 - 避免 Assets :install copy to web scss

标签 symfony assets assetic

我的 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/

相关文章:

Doctrine Query Builder - 如何选择多对多关系?

android google 登录和 facebook 登录按钮看起来完全不同

css - 如何使 css Assets 在 symfony2 元素中遵循特定顺序

php - Symfony2 从 api 数据填充选择列表

html - 动态显示 Twig 中的表格

android - 数据库未在 OnePlus 2 中正确复制

java - 资源未加载到小程序的 jar 文件中

jquery - 如何在子模板中的 JavaScript 标签之前从布局模板加载带有 Assetic 的 jQuery?

windows - Windows 上的 symfony2 assetics yui 压缩器(路径语法)

symfony - 奏鸣曲管理员 : specific batch_confirmation template per batch action