font-awesome not working bundleconfig in MVC5

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

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



        
6条回答
  •  借酒劲吻你
    2020-12-04 13:50

    With version 5.1.0 I had to reference all.css instead of fontawesome.css i.e.,

    bundles.Add(new StyleBundle("~/bundles/fontawesome").Include(
        "~/Content/all.css",
        new CssRewriteUrlTransform()
    ));
    

提交回复
热议问题