1.0.14
New in RequireJS.NET v1.0.14
- bundling is now supported via RequireJsNet.Compressor
Define bundles inside config file:
<configuration>
<paths>
<path key="jquery" value="jquery-1.10.2" />
<path key="bootstrap" value="bootstrap" />
<path key="respond" value="respond" bundle="respond" />
</paths>
<bundles>
<bundle name="mainExplicit" outputPath="Bundles\main.min.js">
<bundleItem path="jquery" />
<bundleItem path="bootstrap" />
</bundle>
<bundle name="defaultBundleTest" outputPath="Bundles\WithDefault\" includes="respond">
<bundleItem path="controllers\root\home\index" />
</bundle>
</bundles>
</configuration>
RequireJS.NET Compressor MSBuild task parses RequireJS.config files and builds bundles using YUI compressor.
NuGet Package
PM> Install-Package RequireJsNet.Compressor