Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (20 loc) · 1.04 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.04 KB

Combres JS SourceMaps

Combres Javascript Minifier for generating sourcemaps. The minifier is based on the existing AjaxMin minifier but it also generates sourcemaps for the compressed files when not in debug mode.

Usage

Add add a new javascript minifier to your combres.xml:

<jsMinifiers>
    <minifier name="msajaxMaps" type="CombresJSSourceMaps.SourceMapMinifier, CombresJSSourceMaps" binderType="Combres.Binders.SimpleObjectBinder, Combres">
        <param name="SourceMapOutputPath" type="string" value="~/js" />
    </minifier>
</jsMinifiers>

The SourceMapOutputPath is the path to where the sourcemap files will be written when the resourceSets are combined. This location must be accessible as a url from the website.

Specify the resourceSets in the combres.xml file that use this minifier:

<resourceSet name="fooJS" minifierRef="msajaxMaps" type="js">
    <resource path="~/js/foo.js" />
    <resource path="~/js/bar.js" />
</resourceSet>