Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

uglify-js-brunch

brunch12.9kdeprecated2.10.0

Deprecated

Adds Uglify minifying support to brunch.

brunchplugin, uglify, uglify-js, optimizer

readme

uglify-js-brunch

Adds UglifyJS support to brunch.

The plugin will minify your javascript files.

Usage

Install the plugin via npm with npm install --save-dev uglify-js-brunch.

Or, do manual install:

  • Add "uglify-js-brunch": "x.y.z" to package.json of your brunch app. Pick a plugin version that corresponds to your minor (y) brunch version.
  • If you want to use git version of plugin, add "uglify-js-brunch": "git+ssh://git@github.com:brunch/uglify-js-brunch.git".

To specify UglifyJS options, use config.plugins.uglify object, for example:

module.exports = {
  // ...
  plugins: {
    uglify: {
      mangle: false,
      compress: {
        global_defs: {
          DEBUG: false
        }
      }
    }
  }
};

Joined files can be ignored and be passed-through, using 'ignored' option:

module.exports = {
  plugins: {
    uglify: {
      ignored: /non_minimize\.js/
    }
  }
};

License

The MIT License (MIT)

Copyright (c) 2012-2017 Paul Miller (http://paulmillr.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

changelog

uglify-js-brunch 2.0.1 (Jan 29, 2016)

  • Updated uglify-js to 2.6.

uglify-js-brunch 2.0.0 (Jan 29, 2016)

  • Updated source code & API. The plugin would now only work with Brunch 2.2 and higher.

uglify-js-brunch 1.7.8 (31 March 2015)

  • Remove Uglify's sourceMappingURL annotation which confliced with Brunch's

uglify-js-brunch 1.7.7 (26 February 2014)

  • Fixed source map handling

uglify-js-brunch 1.7.6 (18 December 2013)

  • Fixed a typo in source code.

uglify-js-brunch 1.7.5 (18 December 2013)

  • Small change: Changed the name of optimizer class.

uglify-js-brunch 1.7.4 (9 December 2013)

  • Errors are now properly thrown on invalid javascript code.

uglify-js-brunch 1.7.3 (16 October 2013)

  • Fix Function.length bug

uglify-js-brunch 1.7.2 (15 July 2013)

  • Updated to optimizer API.

uglify-js-brunch 1.7.1 (27 June 2013)

  • Fixed source maps.

uglify-js-brunch 1.7.0 (22 June 2013)

  • Added source maps support.
  • Updated to uglify 2.3.

uglify-js-brunch 1.5.1 (19 March 2013)

  • Added node 0.10 support, removed coffee-script dependency.

uglify-js-brunch 1.5.0 (15 January 2013)

  • Updated to uglify 2.2.
  • Added source maps support.
  • Improved installation process.

uglify-js-brunch 1.3.1 (16 July 2012)

  • Switched to better error reporting.

uglify-js-brunch 1.3.0 (29 June 2012)

  • Added node.js 0.8 and 0.9 support.
  • Package is now precompiled before every publishing to npm.

uglify-js-brunch 1.1.1 (15 April 2012)

  • Fixed error reporting when installing the package.

uglify-js-brunch 1.1.0 (9 April 2012)

  • Added windows support.

uglify-js-brunch 1.0.0 (8 March 2012)

  • Initial release