Skip to content

Commit

Permalink
Merging PR #6.
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccallum committed Jun 8, 2015
2 parents 2259023 + c235b2e commit e789e14
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
9 changes: 8 additions & 1 deletion AspNetBundling/AspNetBundling.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="AjaxMin, Version=5.14.5506.26196, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f, processorArchitecture=MSIL">
<HintPath>..\packages\AjaxMin.5.14.5506.26202\lib\net40\AjaxMin.dll</HintPath>
<Private>True</Private>
<Aliases>global,AjaxMin</Aliases>
</Reference>
<Reference Include="Antlr3.Runtime, Version=3.4.1.9004, Culture=neutral, PublicKeyToken=eb42632606e9261f, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll</HintPath>
Expand Down Expand Up @@ -66,7 +71,9 @@
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
10 changes: 3 additions & 7 deletions AspNetBundling/ScriptWithSourceMapBundleBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
using System;
extern alias AjaxMin;
using AjaxMin::Microsoft.Ajax.Utilities;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Web;
using System.Web.Optimization;
using Microsoft.Ajax.Utilities;

namespace AspNetBundling
{
Expand Down Expand Up @@ -65,12 +66,7 @@ public string BuildBundleContent(Bundle bundle, BundleContext context, IEnumerab
}

contentWriter.Write(contentMinified);

sourceMap.EndPackage();
sourceMap.EndFile(contentWriter, "\r\n");
}

contentBuilder.Replace("//@ sourceMappingURL=", "//# sourceMappingURL=");

//Write the SourceMap to another Bundle
AddContentToAdHocBundle(context, mapVirtualPath, mapBuilder.ToString());
Expand Down
1 change: 1 addition & 0 deletions AspNetBundling/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="AjaxMin" version="5.14.5506.26202" targetFramework="net45" />
<package id="Antlr" version="3.4.1.9004" targetFramework="net45" />
<package id="Microsoft.AspNet.Web.Optimization" version="1.1.3" targetFramework="net45" />
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
Expand Down

0 comments on commit e789e14

Please sign in to comment.