Giter VIP home page Giter VIP logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024

Original comment by [email protected] on 28 Aug 2007 at 5:06

  • Changed state: Invalid
  • Removed labels: Priority-Medium

from minify.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
not quite sure why it is invalid. it's a perfectly valid point. a better 
alternative to jsmin and the pre mentioned 
script is http://joliclic.free.fr/php/javascript-packer/en/

Original comment by [email protected] on 28 Aug 2007 at 9:15

from minify.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
JSMin doesn't "bail" on large libraries. The problem you're seeing is that 
Prototype,
Scriptaculous, and some other libraries are written with bad coding practices 
that
JSMin doesn't tolerate. The rule of thumb is that if JSLint throws warnings, 
you're
likely to run into problems with JSMin.

Packer is a reasonable alternative to JSMin, but whether or not it's better is
arguable. They both have their advantages and disadvantages.

I'd advise against using your regexp-based minification function. JavaScript is 
a
notoriously difficult language to parse correctly, and those regexps are 
absolutely
guaranteed to introduce errors (especially the 'remove extra spaces' regexp, 
which
doesn't take strings into account).

Original comment by [email protected] on 28 Aug 2007 at 9:23

from minify.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
I believe I read someone now maintains JSMin-friendly versions of these 
libraries 
(or you can get pre-minified versions). Regardless, in version 2.x you can use 
the 
PHP5 Packer (or any other code) for certain files if you want. The 
configuration is 
a little tricky, but ask on the google groups.

Original comment by [email protected] on 27 Nov 2008 at 3:37

  • Changed state: Fixed

from minify.

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.