nebrelbug/rollup-plugin-closure-compile(新しいタブで開きます)
主要言語: JavaScript
Rollup plugin that uses the up-to-date JS version of Closure Compiler to minify your code. Works with sourcemaps
- star 数
- 4
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 5
- 最終更新
- 2022/02/12
主要言語: JavaScript
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 'rollup-plugin-closure-compile' // In Rollup config: plugins: [ closureCompile({ level: 'SIMPLE' // Or 'ADVANCED' or 'WHITESPACE_ONLY' }) ]
See the google-closure-compiler repository for information about flags
yarn testor
npm testThe tests check:
standardTo format the code:
yarn format
To check formatting:
yarn testPlease 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: