font-awesome not working bundleconfig in MVC5

前端 未结 6 448
挽巷
挽巷 2020-12-04 13:00

If I direct refer to font-awesome.css in _layouts page. it will work



        
6条回答
  •  情深已故
    2020-12-04 13:56

    I add another answer to this question has I found the solution by mixing some of them.

    1. Most voted answer is the main solution, but it is also important to
    2. Add the entry suggested by this answer. Finally
    3. Follow the comment from @feradz in most voted answer: "delete the .min.css version -- it was causing the optimizer to not generate a minified version with the correct path"

    Last point is the key of all: distributed "min" versions of the js files, does not follow the "CssRewriteUrlTransform" rules. So, manually deleting bootstrap.min.css, font-awesone.min.css definitively solved the issue.

提交回复
热议问题