assetic-bundle icon indicating copy to clipboard operation
assetic-bundle copied to clipboard

Make AsseticBundle works with AssetCache

Open scourgen opened this issue 12 years ago • 4 comments

I found out that kriswallsmith/assetic supports cache ,but this bundle doesn't work with it. So I made some change to make it works,that's useful for projects which has a lot of js/css files like mine.

scourgen avatar Jan 05 '13 05:01 scourgen

Please adapt this PR to the symfony/psr coding standards: http://symfony.com/doc/master/contributing/code/standards.html

ghost avatar Jan 26 '13 11:01 ghost

If It still has something wrong,please tell me,thanks .

scourgen avatar Jan 28 '13 07:01 scourgen

Hi @scourgen,

Thanks for the pull request. At first glance this change adds a layer of complexity that doesn't appear to be worth it. Why do you think this should be added?

Thanks, Kris

kriswallsmith avatar Jan 31 '13 17:01 kriswallsmith

I have a project that has hundreds of js/css files, on each times of deploy, We need spend about 10 minutes to compile all js/css fies(I was use google compiler for js and yahoo compiler for css). Since we deploying frequently, We waste a lot of time on deployment. So I want find a way to make it faster.

So basically What I do is adapt the dump command with AssetCache. the purpose of that is make assets cacheable(If the source code doesn't change,then just use the exist complied version instead of compile it again.)

scourgen avatar Feb 01 '13 03:02 scourgen