skeeks-semenov / yii2-assets-auto-compress

Automatic compilation of js + css + html
https://skeeks.com/
BSD 3-Clause "New" or "Revised" License
157 stars 43 forks source link

Bug when file is missing #12

Open robov opened 8 years ago

robov commented 8 years ago

When a css file is missing your code never ends

skeeks-semenov commented 8 years ago

@robov https://github.com/skeeks-semenov/yii2-assets-auto-compress/blob/master/AssetsAutoCompressComponent.php#L613

If the file does not exist, all the files are not merged into one. And it works, as the bud that would, this component at all. I decided to do so until. Probably it is necessary to write about it ...

robov commented 8 years ago

What about the option to bypass that exeption?

'ignore_missing_files' =>true;

Then your extension is a bit more bulletproof and it handles the documentation, as you can write about it in the settings itself

skeeks-semenov commented 8 years ago

@robov Yes, a great idea, do a little later

robov commented 8 years ago

Can you comment when you have some so? Then I can continue testing

skeeks-semenov commented 8 years ago

@robov Yes, most likely it will Monday

6elkir commented 5 years ago

In addition, this bug is observed if the file is empty.