yii2-assets-auto-compress icon indicating copy to clipboard operation
yii2-assets-auto-compress copied to clipboard

Bug when file is missing

Open robov opened this issue 9 years ago • 6 comments

When a css file is missing your code never ends

robov avatar Jul 30 '16 06:07 robov

@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 ...

skeeks-semenov avatar Jul 30 '16 07:07 skeeks-semenov

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

robov avatar Jul 30 '16 09:07 robov

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

skeeks-semenov avatar Jul 30 '16 09:07 skeeks-semenov

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

robov avatar Jul 30 '16 10:07 robov

@robov Yes, most likely it will Monday

skeeks-semenov avatar Jul 30 '16 10:07 skeeks-semenov

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

6elkir avatar Oct 02 '18 18:10 6elkir