Skip to content

1.0.14

Compare
Choose a tag to compare
@stefanprodan stefanprodan released this 18 Nov 12:56
· 237 commits to master since this release
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