
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
grunt-closurecompiler
Advanced tools

Yet simple, but powerful. Available through npm.
grunt.initConfig({
closurecompiler: {
minify: {
files: {
// Destination: Sources...
"Gruntfile.min.js": [__filename]
},
options: {
// Any options supported by Closure Compiler, for example:
"compilation_level": "SIMPLE_OPTIMIZATIONS",
// Plus a simultaneous processes limit
"max_processes": 5,
// And an option to add a banner, license or similar on top
"banner": "/* hello world! */"
}
}
},
});
grunt.registerTask('minify', ['closurecompiler:minify']);
Run it: grunt minify
See also: Gruntfile.js
Works like any other Grunt plugin/task. See the ClosureCompiler.js project for detailed information on available options and the Grunt website for everything Grunt.
Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.html
FAQs
The ClosureCompiler.js Grunt Task
The npm package grunt-closurecompiler receives a total of 84 weekly downloads. As such, grunt-closurecompiler popularity was classified as not popular.
We found that grunt-closurecompiler 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.