MVC4 Less Bundle @import Directory

前端 未结 10 837
南方客
南方客 2020-12-12 17:02

I\'m trying to use MVC4 bundling to group some of my less files, but it looks like the import path I\'m using is off. My directory structure is:

static/
             


        
10条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-12 17:49

    I've written a quick blog post about Using LESS CSS With MVC4 Web Optimization.

    It basically boils down to using the BundleTransformer.Less Nuget Package and changing up your BundleConfig.cs.

    Tested with bootstrap.

    EDIT: Should mention the reason I say this, is I also ran into the @import directory structure issue, and this library handles it correctly.

提交回复
热议问题