Giter Site home page Giter Site logo

Comments (3)

jackspirou avatar jackspirou commented on July 21, 2024

Still using the google javascript closure compiler, but it is hidden now. It is wrapped around a gulp plugin :)

from clientjs.

dsmontoya avatar dsmontoya commented on July 21, 2024

Why didn't you use Uglify2 instead?

from clientjs.

jackspirou avatar jackspirou commented on July 21, 2024

@dsmontoya I started with Uglify2 or gulp-minify, but there were a few issues:

  • minifiying multiple files to a single file was not intuitive and needed gulp-concat.
  • a copy of the original source was also placed in the dist folder (never figured out what options existed or how they worked to remove it) which might be good behavior, but we haven't discussed it.
  • The final resulting single concatenated minified file had issues and broke methods like getFlashVersion().

The only pro was that the minification was slightly better than the google closure compiler by a few bytes (like ~0.6 KB).

Since we currently are using the google closure compiler I decided it would be fine to stick with it for now until we can resolve the issues above with gulp-minify. Also the resources we were able to find for the google closure compiler allowed for easy use with Gulp:

All that said, if later we can figure out how to get Uglify2 working properly, and it gets us better compression/minification I think we should switch to it :)

from clientjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.