I am using version 1.7.27 of the Bundle Transformer: LESS package here: http://www.nuget.org/packages/BundleTransformer.Less/1.7.27
I am then attempting to do the below in an MVC4 project's BundleConfig.cs
file in App_Start
.
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new StyleBundle("~/Content/fontawesome")
.Include("~/Content/less/fontawesome/font-awesome.less"));
BundleTable.EnableOptimizations = true;
}
By default the Font Awesome less package has these @imports in the font-awesome.less
file
@import "variables.less";
@import "mixins.less";
@import "path.less";
@import "core.less";
@import "bootstrap.less";
@import "extras.less";
@import "icons.less";
The files are in the same directory as the font-awesome.less
file.
The bundling kicks in and shows like this:
<link href="/Content/fontawesome?v=D2n9lw_SpgOm7QSYHjToA3En_lqvKQpP2DbfM_CElpc1" rel="stylesheet"/>
but the @import files all return a 404 not found error, I kind of thought that the @import
rules would have been processed first from their relative location to the original file, before the bundling was performed..
Am I missing something?