Changing the Brew Script Mode - shellscape/Brew GitHub Wiki

Brew ships with two script files that will unpack into the Scripts directory of your website: brew.js and brew.min.js. Either file is required by any page that uses Brew, but fear not - the ScriptManager and Controls take care of adding it to the page for yu. brew.js is the unminified, development version. brew.min.js is (obviously) the minified, release version. When deploying your code, it is recommended that you use the release version of brew.js.

To switch between script modes, you can use the following code block. This can be inserted into a control, page or masterpage.

protected override void OnLoad(EventArgs e) {
    base.OnLoad(e);

    var sm = ScriptManager.GetCurrent(this.Page);

    sm.ScriptMode = ScriptMode.Release; // or ScriptMode.Debug
}