References to font (font-awesome) resources are not updated in yeoman/angular grunt build

前端 未结 3 824
小鲜肉
小鲜肉 2021-02-06 16:25

I\'m aware of the SO threads about this (I\'ve linked them below), but unfortunately I couldn\'t solve this with them, so please allow me this question :-)

I\'ve bootst

3条回答
  •  温柔的废话
    2021-02-06 16:56

    Finally, I figured it out :)

    I pinned down cssmin to be the bad guy in this game: It was responsible for writing the .tmp paths into the final css file. To solve this, I added the noRebase: true, option to the cssmin task in Gruntfile.js .

    To get along with the font references, I also used the copy task to copy the fonts into my dist folder and had to use $icon-font-path: "../fonts/" to have it finally in the right format.

    Maybe this will help someone stuck in a similar situation :-)

提交回复
热议问题