yeoman build:minify renames images -> angularjs ng-src fails

前端 未结 2 803
不知归路
不知归路 2020-12-28 18:47

I am using yeoman + angular and tried out \'yeoman build:minify\'. This fails because the task rev:img renames all images. Afterwards, the dynamic sources (see http://docs.a

2条回答
  •  情深已故
    2020-12-28 19:20

    This is currently a known issue and we'll try to fix it soon.

    In the meantime you can try out one of the suggested workarounds in this thread.

    Just replace the rev config with this:

    rev: {
       img: ['images/**','!images/ignore/**']
    }
    

    and place all your dynamic images in images/ignore/

提交回复
热议问题