brunch / Terser Brunch
Licence: mit
A javascript minifier for brunch files.
Stars: ✭ 120
Programming Languages
javascript
184084 projects - #8 most used programming language
terser-brunch
Adds Terser support to Brunch.
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, use config.plugins.terser
object, for example:
module.exports = {
// ...
plugins: {
terser: {
mangle: false,
compress: {
global_defs: {
DEBUG: false,
},
},
},
},
};
Joined files can be ignored and be passed-through, using ignored
option:
module.exports = {
plugins: {
terser: {
ignored: /dont-minimize\.js/,
},
},
};
License
The MIT License (MIT)
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].