ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

HTML Minifier

by geekpradd ST3

A Sublime text Plugin to minify HTML5, CSS3 and Javascript code

Details

Installs

  • Total 20K
  • Win 13K
  • OS X 5K
  • Linux 3K
Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10
Windows 7 17 27 17 26 16 33 20 14 18 26 28 24 16 10 11 14 13 25 22 12 4 9 12 17 20 18 17 10 17 25 17 20 18 21 7 15 22 15 21 18 20 8 18 21 27
OS X 1 7 5 1 6 6 5 3 3 11 10 8 9 3 1 0 2 6 7 7 6 5 1 3 5 7 5 6 2 5 4 4 9 8 7 3 1 7 6 5 4 2 2 4 10 7
Linux 3 3 3 2 4 2 4 2 1 6 3 3 6 2 1 8 3 3 3 3 3 4 3 1 2 4 4 4 1 1 5 0 6 6 6 3 2 2 2 2 2 2 0 3 9 3

Readme

Source
raw.​githubusercontent.​com

Sublime HTML5 Minifier

This is a Sublime Text 3 Plugin for reducing the code size of HTML5, CSS3 and Javascript files.

Installation

This plugin can be installed by searching for HTML Minifier on Package Control in Sublime Text 3.

You can install Package Control by following these steps: https://sublime.wbond.net/installation

Usage

In order to minify code, Click on the Tools menu and click Minify Current File. A .min file be added onto the current directory where you are working.

Alternatively, Right Click on the Editor area or the sidebar and click 'Minify HTML5 File'.

For example, if you are working on a file 'main.css' in the location 'C:\Projects\' then a minified file will be created at 'C:\Projects\' with the name main.min.css making the full path 'C:\Projects\main.min.css'.

This is done to keep two versions of the codebase, one minified and the other development version.

If you want to overwrite your file, such that the minified version of say main.html should be written to main.html inplace of main.min.html, click on Tools - Minify HTML5 File (modify existing)

Command Palllete

Press Ctrl+Shift+P and then type Minify File. You have two options: If you want to create a new file, then click on “HTML Minfier: Minify File (create new)” or if you want to write to the current file, then click on “HTML Minfier: Minify File (modify existing)”

Change Log

Version 1.1 contains the following changes in the plugin:

  • Minifying Process runs in a separate thread

  • Source has been streamlined on the principles of OOP

  • Already Minified versions of the file will open up in the Sublime Window, instead of no output being shown.

  • Performance Improvements

  • Javascript Not Opening Bug Fixed

Version 1.2

  • Performance Optimisations
  • Bug Fixing
  • Module changing for better support

Version 1.3

  • Mac OS X Bug fixes
  • Code uses PEP8
  • Better Linux Support

Version 1.4

  • Ability to Minify Files in the same file instead of creating a new file
  • Commands for Command Pallete
  • Switch Menu to Tools

About

This Plugin uses Closure Compiler for Javascript compilation, CSS Minifier for CSS and HTML5Minifier for HTML.

Created By Pradipta aka GeekPradd