Adding bootstrap in bundleconfig doesn't work in asp.net mvc

前端 未结 1 2018
梦如初夏
梦如初夏 2020-12-08 09:56

I met an issue, strange in my point of view.

I installed bootstrap via nuget package console.

After that, in BundleConfig.cs file, I added two i

相关标签:
1条回答
  • 2020-12-08 10:21

    When using Bundle, do not append the .min

    bundles.Add(new StyleBundle("~/Content/bootstrap").Include(
        "~/Content/bootstrap.css", 
        "~/Content/bootstrap-theme.css"));
    

    Based on the debug setting, (mostly web.config)

    • debug="true" - the non minified version will be used.
    • debug="false" - *.min.css will be searched, and if not found, the current will be minified

    web.config setting:

    <system.web>
      <compilation debug="true"...
    
    0 讨论(0)
提交回复
热议问题