webpack-closure-compiler - Google Closure Compiler plugin for Webpack

  •        13

Closure Compiler is the most advanced JavaScript optimization tool. It generates smallest bundle and emits efficient JavaScript code by doing whole program analysis and optimization, removing closures and inlining function calls, as well as tree-shaking for AMD, CommonJS and ES2015 modules. While there's JavaScript version of Closure Compiler, the original compiler is written in Java and thus Java version is more complete and performs better in terms of JavaScript code optimizations and compilation speed. If you want to use Java-based compiler, make sure you have installed Java SDK.

https://github.com/roman01la/webpack-closure-compiler

Dependencies:

async : ^1.5.2
google-closure-compiler : ^20180402.0.0
google-closure-compiler-js : ^20180402.0.0
temp : ^0.8.3
webpack-core : ^0.6.9

Tags
Implementation
License
Platform

   




Related Projects

closure-compiler-handbook - How to use Google's Closure Compiler

  •    

This handbook is designed to help you understand how to use Closure Compiler and learn its features. The Closure Compiler is a tool for making JavaScript download and run faster. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls.

closure-compiler - A JavaScript checker and optimizer.

  •    Java

Closure Compiler is a JavaScript optimizing compiler. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. It is used in many of Google's JavaScript apps, including Gmail, Google Web Search, Google Maps, and Google Docs.

closure-compiler-js - Package for the JS version of closure-compiler for use via npm

  •    Javascript

Check, compile, transpile, optimize and compress JavaScript with Closure Compiler in JS

The-cost-of-transpiling-es2015-in-2016 - Investigating the overhead cost of compiled es2015

  •    Javascript

There are a lot of tools to compile es2015 to es5. When choosing your compile stack you should be aware that tools that perform tree shaking and topological sorts of your code dependencies will result in smaller code bundles and faster js execution times. With the recent es2015 boom 2016 javascript developers have a myriad of combinatorial choices when it comes to writing es2015 and compiling that code to es5 or lower. From closure compiler to browserify to uglify to webpack it is hard to know what is the best for compiling es2015 to run in browsers today.

Clojurescript - Clojure to JS compiler

  •    Clojure

ClojureScript is a compiler for Clojure that targets JavaScript. It is designed to emit JavaScript code which is compatible with the advanced compilation mode of the Google Closure optimizing compiler. ClojureScript combines the reach of the JavaScript platform, the flexibility and interactive development of Clojure, and the whole-program optimization of Google Closure to provide the most powerful language for programming the web.


UI Compiler .NET - JavaScript compiler/minifier built on Google Closure Compiler

  •    Javascript

A compiler/minifier for JavaScript, built on Google Closure Compiler and YUI Compressor. It provides a .NET component for integration and a windows UI, allowing compilation of multiple source files in to one single file.

Closure Compiler w/ Annotations Visual Studio 2010 Snippets

  •    

This is an attempt to create reusable Visual Studio snippets to make working with closure compiler annotated JavaScript more productive. VS2010 Snippets are XML so I also see this in the future being a generic IDE template/snippet library using XSLT to transform for other IDEs.

babel-webpack-tree-shaking - Tree-shaking example with Babel and Webpack

  •    Javascript

This repository shows how to configure Babel and Webpack to enable tree-shaking. It will eliminate dead code if they have ES2015 module format. The source code can be found in the app/ folder, where the main file car.js doesn't use all the dependencies from engine.js. The built and transpiled files can be found in the /dist folder.

SoundManager2 - A JavaScript Sound API supporting MP3, MPEG4 and HTML5 audio + RTMP, providing reliable cross-browser/platform audio control in as little as 12 KB

  •    Javascript

By wrapping and extending HTML5 and Flash Audio APIs, SoundManager 2 brings reliable cross-platform audio to JavaScript.An Ant build file defines the tasks for compiling JS and SWF components, useful if you make changes to the SM2 source and want to recompile. Google's Closure Compiler is used for the JS. AS2 compilation is done by MTASC, and AS3 is handled by Adobe's Open Source Flex SDK (mxmlc) compiler. Refer to build.xml for compiler downloads and path definitions.

Webpack - A bundler for javascript and friends

  •    Javascript

Webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable of transforming, bundling, or packaging just about any resource or asset.

butternut - The fast, future-friendly minifier

  •    Javascript

Butternut is significantly faster than other JavaScript minifiers, and works with the latest version of JavaScript (ES2015, aka ES6, and beyond). It's typically around 3x faster than UglifyJS with default minify options, and 10-15x faster than Babili.The compression is better than Babili and closure-compiler-js (in standard compilation mode — you can get better results with Closure in advanced mode, but only by writing your code in a very particular way). It's almost as good as Uglify in its current version.

jslim - It's your favorite JavaScript library, only faster

  •    Javascript

JSlim is a JavaScript optimizer based on the Google Closure Compiler, but instead of optimizing your code it removes unused code. Some people call this type of application a tree shaker because it shakes unused code out of your tree. Most websites use JavaScript libraries like JQuery or Prototype, but they don't use the whole library. JSlim builds you a new version of your favorite JavaScript library with only the code you're using.

Managed Closure Pattern

  •    

The managed and controlled closures. Creation of the closure behavior that independent from a compiler. You can control the lifetime of closures.

Bundle Transformer - a modular extension for ASP.NET Web Optimization Framework

  •    ASPNET

Bundle Transformer - a modular extension for System.Web.Optimization (also known as the Microsoft ASP.NET Web Optimization Framework).

webpack-cli - Webpack's Command Line Interface

  •    Javascript

Webpack CLI encapsulates all code related to CLI handling. It captures options and sends them to webpack compiler. You can also find functionality for initializing a project and migrating between versions. For the time being, it is backwards-compatible with the CLI included in webpack itself.The migrate feature eases the transition from version 1 to version 2. migrate also allows users to switch to the new version of webpack without having to extensively refactor.

FastExpressionCompiler - Fast ExpressionTree compiler to delegate

  •    CSharp

Expression.Compile creates a DynamicMethod and associates it with an anonymous assembly to run it in a sand-boxed environment. This makes it safe for a dynamic method to be emitted and executed by partially trusted code but adds some run-time overhead. .CompileFast() is 10-40x times faster than .Compile(). The compiled delegate may be in some cases 15x times faster than the one produced by .Compile().

gocaml - :camel: Practical statically typed functional programming language implementation with Go and LLVM

  •    Go

GoCaml is subset of OCaml in Go based on MinCaml using LLVM. GoCaml adds many features to original MinCaml. MinCaml is a minimal subset of OCaml for educational purpose. It is statically-typed and compiled into a binary. This project aims incremental compiler development for my own programming language. Type inference, closure transform, mid-level IR are implemented.

angular2-aot-webpack - Angular AOT (Ahead Of Time) offline compilation example with Webpack

  •    Javascript

This repository shows how to use the Angular command line offline compiler ngc with Webpack. If you prefer the Webpack plugin provided by the Angular CLI, it can be found in a separate repository.

webpack-common-shake - CommonJS Tree Shaker plugin for WebPack

  •    Javascript

Please file an issue if anything is broken.See common-shake for abstract bundler-independent implementation.

lumo - Fast, cross-platform, standalone ClojureScript environment

  •    Clojure

Lumo is a standalone ClojureScript environment that runs on Node.js and the V8 JavaScript engine. It starts up instantaneously and has out-of-the-box access to the entire Node.js ecosystem. Lumo also provides a ClojureScript build API, making it possible to compile ClojureScript projects entirely without the JVM, thanks to the experimental JavaScript version of the Google Closure Compiler.