Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brunch/terser-brunch
A javascript minifier for brunch files.
https://github.com/brunch/terser-brunch
Last synced: 3 months ago
JSON representation
A javascript minifier for brunch files.
- Host: GitHub
- URL: https://github.com/brunch/terser-brunch
- Owner: brunch
- License: mit
- Archived: true
- Created: 2012-03-05T08:40:02.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2021-07-12T14:20:06.000Z (over 3 years ago)
- Last Synced: 2024-07-28T06:08:36.297Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 61.5 KB
- Stars: 156
- Watchers: 8
- Forks: 32
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-star - terser-brunch
README
# terser-brunch
Adds [Terser](https://github.com/terser-js/terser) support to [Brunch](https://brunch.io).
The plugin will minify your JavaScript files. Supports modern language features.
Previously known as `uglify-js-brunch`.
## Usage
Install the plugin via npm with `npm install --save-dev terser-brunch`.
To specify [Terser options](https://github.com/terser-js/terser#minify-options), use `config.plugins.terser` object, for example:
```js
module.exports = {
// ...
plugins: {
terser: {
mangle: false,
compress: {
global_defs: {
DEBUG: false,
},
},
},
},
};
```Joined files can be ignored and be passed-through, using `ignored` option:
```js
module.exports = {
plugins: {
terser: {
ignored: /dont-minimize\.js/,
},
},
};
```## License
The MIT License (MIT)