Getting Started with Google closure library

Getting Started with Google closure library

October 19, 2019

Some JavaScript library depends on Google Closure. If you need to understand the behavior of such a library, you have to know closure. The official document of closure library is here. And using Closure compiler, we can bundle codes with those libraries. There is npm version to use such a compiler.

Examples

  1. ./index.html
    • Sample to use google closure library
  2. hello.js
    • first sample using google cloud compiler
  3. myproject/start.js, myproject/klass.js
    • Sample using module
  4. TODO
    • Sample to use gooogle closure library and compile

Google closure compiler

The compiler can be downloaded by npm.

> npm install --save-dev google-closure-compiler
Last updated on