Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Symfony2 中使用 Assetic 时遇到问题。看起来它管理着他自己的缓存,因为它生成了历史上在我的项目中的每个 CSS 文件,尽管我已经删除了其中的许多文件(并清除了 Symfony 的两个缓存)。例如,我在整个项目中有 8 个 CSS 文件,但它加载了 12 个,当我执行assetic:dump 时,它会生成 91 个不同的文件。使用 JS 可以正常工作。
提前谢谢了。
Assetic 在 /web/bundles/ 目录中查找文件,因此您还需要清除它。
或者使用符号链接。assets:install web --symlink
assets:install web --symlink