https://github.com/amarcruz/uglify-es-brunch
Adds UglifyES support to brunch.
https://github.com/amarcruz/uglify-es-brunch
brunch es6 es7 javascript plugin uglify
Last synced: 11 days ago
JSON representation
Adds UglifyES support to brunch.
- Host: GitHub
- URL: https://github.com/amarcruz/uglify-es-brunch
- Owner: aMarCruz
- License: mit
- Created: 2017-10-13T04:36:44.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-25T08:36:52.000Z (almost 7 years ago)
- Last Synced: 2025-05-15T14:11:16.632Z (5 months ago)
- Topics: brunch, es6, es7, javascript, plugin, uglify
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[![npm][npm-image]][npm-url]
[![License][license-image]][license-url]# uglify-es-brunch
Adds [UglifyES](https://github.com/mishoo/UglifyJS2/tree/harmony) support to
[brunch](http://brunch.io).The plugin will minify your javascript files (ES5, ES6 and higher).
## Usage
Only manual install, add this to your package.json:
```
"uglify-es-brunch": "aMarCruz/uglify-es-brunch"`
```To specify UglifyES options, use `config.plugins.uglify` object, for example:
```js
module.exports = {
// ...
plugins: {
uglify: {
mangle: false,
compress: {
global_defs: {
DEBUG: false
}
}
}
}
};
```Joined files can be ignored and be passed-through, using 'ignored' option:
```js
module.exports = {
plugins: {
uglify: {
ignored: /non_minimize\.js/
}
}
};
```## License
The [MIT License](LICENCE) (MIT)
Copyright (c) 2017-2018 Alberto Martínez (https://github.com/aMarCruz)
[npm-image]: https://img.shields.io/npm/v/uglify-es-brunch.svg
[npm-url]: https://www.npmjs.com/package/uglify-es-brunch
[license-image]: https://img.shields.io/npm/l/express.svg
[license-url]: https://github.com/aMarCruz/uglify-es-brunch/blob/master/LICENSE