
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
rollup-plugin-closure-compile
Advanced tools
Rollup plugin that uses the up-to-date JS version of Closure Compiler to minify your code. Works with sourcemaps
Rollup plugin that lets you compile your code with Google Closure Compiler
google-closure-compiler package on npm, rather than the outdated google-closure-compiler-jsYes, this plugin will run slower than Uglify or Terser, but it will typically produce a smaller code size. You decide if it's worth it.
With Yarn:
yarn add rollup-plugin-closure-compile
With npm:
npm install rollup-plugin-closure-compile
import closureCompile from 'closure-compiler-rollup'
// In Rollup config:
plugins: [
closureCompile({
level: 'SIMPLE' // Or 'ADVANCED' or 'WHITESPACE_ONLY'
})
]
See the google-closure-compiler repository for information about flags
yarn test
or
npm test
The tests check:
standardTo format the code:
yarn format
To check formatting:
yarn test
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
TL;DR:
standardWe use SemVer for versioning.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
Inspiration taken from, and based on:
FAQs
Rollup plugin that uses the up-to-date JS version of Closure Compiler to minify your code. Works with sourcemaps
The npm package rollup-plugin-closure-compile receives a total of 6 weekly downloads. As such, rollup-plugin-closure-compile popularity was classified as not popular.
We found that rollup-plugin-closure-compile 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.