Snowpack plugin (v1.3.2) that processes JavaScript assets through Google Closure Compiler for minification and static analysis. Requires Node >=8 and Snowpack >=2.0.0. Supports BUNDLE, WHITESPACE_ONLY, SIMPLE, ADVANCED compilation levels, ECMAScript version control via languageIn/languageOut, and custom output file name. Not under active development; last release in 2020.
npm install snowpack-plugin-closure-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Snowpack to run Closure Compiler with advanced optimization on all JS files, outputting a single bundle.js.
Replace Snowpack with Vite and use a corresponding Vite Closure Compiler plugin (e.g., vite-plugin-closure-compiler).
Use with Snowpack v2 only; for v3, check compatibility or switch to another minification plugin.
Set bundle: false if you need separate output files per input.
Consider using lighter minifiers like terser or esbuild for faster builds.
Use a maintained alternative or update the underlying google-closure-compiler version manually.
npm install --save-dev google-closure-compiler
Use module.exports = { ... } instead of export default.Set outputFile to a string (e.g., 'main.js') in plugin options.
Use the string reference in plugins array: 'snowpack-plugin-closure-compiler'.