项目作者: aMarCruz

项目描述 :
Adds UglifyES support to brunch.
高级语言: JavaScript
项目地址: git://github.com/aMarCruz/uglify-es-brunch.git
创建时间: 2017-10-13T04:36:44Z
项目社区:https://github.com/aMarCruz/uglify-es-brunch

开源协议:MIT License

下载


npm
License

uglify-es-brunch

Adds UglifyES support to
brunch.

The plugin will minify your javascript files (ES5, ES6 and higher).

Usage

Only manual install, add this to your package.json:

  1. "uglify-es-brunch": "aMarCruz/uglify-es-brunch"`

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

  1. module.exports = {
  2. // ...
  3. plugins: {
  4. uglify: {
  5. mangle: false,
  6. compress: {
  7. global_defs: {
  8. DEBUG: false
  9. }
  10. }
  11. }
  12. }
  13. };

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

  1. module.exports = {
  2. plugins: {
  3. uglify: {
  4. ignored: /non_minimize\.js/
  5. }
  6. }
  7. };

License

The MIT License (MIT)

Copyright (c) 2017-2018 Alberto Martínez (https://github.com/aMarCruz)