
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
customize-engine-uglify
Advanced tools
UglifyJS adapter for Customize
npm install customize-engine-uglify
The following example demonstrates how to use this module:
var customize = require('customize')
// Load files from one directory and merge with a second one
customize()
.registerEngine('uglify', require('customize-engine-uglify'))
// Add two javascript files
.merge({
uglify: {
files: {
'a-browser-lib.js': require.resolve('./module1/a-browser-lib.js'),
'another-browser-lib.js': require.resolve('./module1/another-browser-lib.js')
},
dependencies: {
'a-browser-lib.js': [ 'another-browser-lib.js' ]
}
}
})
// Add another js file overriding "a-browser-lib.js"
.merge({
uglify: {
files: {
'a-browser-lib.js': require.resolve('./module2/overriding-browser-lib.js')
}
}
})
.run()
.done(console.log)
This will generate the following output
{ uglify:
{ 'bundle.js': 'console.log("another-browser-lib"),console.log("overriding-browser-lib");\n//# sourceMappingURL=bundle.js.map',
'bundle.js.map': '{"version":3,"sources":["/home/nknappmeier/projects/bootprint/customize-engine-uglify/examples/module1/another-browser-lib.js","/home/nknappmeier/projects/bootprint/customize-engine-uglify/examples/module2/overriding-browser-lib.js"],"names":["console","log"],"mappings":"AAAAA,QAAQC,IAAI,uBCAZD,QAAQC,IAAI","file":"bundle.js"}' } }
customize-engine-uglify is published under the MIT-license.
See LICENSE.md for details.
For release notes, see CHANGELOG.md
See CONTRIBUTING.md.
FAQs
UglifyJS adapter for Customize
We found that customize-engine-uglify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.