Javascript Compressor

Compatible with IntelliJ IDEA
Feb 14, 2006
18 914
compresses javascript files by removing unnecessary whitespace, comments etc
  • javascript source file should be named yourfilename.source.js
  • otherwise source file is created before compressing the original file
  • press ctrl+shift+alt+j while file is opened in editor panel
  • the compressed javascript file will be saved as yourfilename.js
known issues:
  • statements not terminated by a semicolon might cause problems after compressing, uncheck "remove all linebreaks" option in this case (or - which would be the better way - insert semicolons where they should be)

Download plugin

Recent change notes

  • 1.1.0 made configurable and added configuration option "remove all line breaks"
  • 1.0.1 changed default keyboard shortcut to ctrl+shift+alt+j as ctrl+shift+alt+c does not seem to work with idea 5.1
  • 1.0 moved explanatory text from comment to readme.txt file in order to not waste the bytes we just gained - think it's stable now
  • 0.9.2.1 added compression report after end of compression + corrected filename in comment of compressed files
  • 0.9.2 added some dialogs + offer to create source.js file if current file is not of that kind
  • 0.9.1 line breaks within two words now end up as spaces instead of nothings