Skip to content
Sublime Text CSS and JS minifier.
Python
Find file
Latest commit 2c0f9a6 Sep 26, 2013 @bistory Merge pull request #12 from cold-logic/master
Fixed issues with Minify to File in ST3 (thanks @cold-logic)
Failed to load latest commit information.
compilers
.gitignore Added ignored files. Jul 15, 2012
Default (Linux).sublime-keymap Initial commit Jul 14, 2012
Default (OSX).sublime-keymap Change key bindings on MacOSX from ctrl to ⌘. Jul 16, 2012
Default (Windows).sublime-keymap Initial commit Jul 14, 2012
Default.sublime-commands Initial commit Jul 14, 2012
Main.sublime-menu Undo Jul 16, 2012
Minifier.sublime-settings Uses uglifyJS by default instead of Closure compiler for stability an… Mar 22, 2013
Minify.py Fixed issues with Minify to File in ST3 Sep 24, 2013
README.md Updated README to add reference to cssminifier Mar 22, 2013

README.md

A Javascript and CSS Minifier for Sublime Text 2

The plugin supports the Google Closure Compiler and UglifyJS compilers for Javascript minification and cssminifier and Reducisaurus for CSS minification.

This module was forked from JsMinifier.

Usage

Windows / Linux default key binding:
ctrl + alt + m - attempts to minify the current buffer and replaces the buffers content
ctrl + alt + shift + m - attempts to minify the current buffer and saves the output to a separate file.

MacOSX default key binding:
⌘ + alt + m - attempts to minify the current buffer and replaces the buffers content
⌘ + alt + shift + m - attempts to minify the current buffer and saves the output to a separate file.

Installation

Without Git: Download the latest source from GitHub and copy the whole directory into the Packages directory. Make sure folder name is "Minifier".

With Git: Clone the repository in your Sublime Text 2 Packages directory, located somewhere in user's "Home" directory:

`git clone git://github.com/bistory/Sublime-Minifier.git`

The "Packages" packages directory is located at:

  • OS X:

    ~/Library/Application Support/Sublime Text 2/Packages/

  • Linux:

    ~/.Sublime Text 2/Packages/

  • Windows:

    %APPDATA%/Sublime Text 2/Packages/

Something went wrong with that request. Please try again.