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 75K
  • Win 58K
  • Mac 11K
  • Linux 7K
Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7
Windows 0 9 3 2 10 7 4 5 6 7 4 2 8 6 5 7 4 7 6 4 2 4 4 4 4 3 4 2 5 7 2 2 5 4 4 5 5 6 2 4 3 3 2 6 1 3
Mac 0 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 0 0 0 1 0 0 1 0 0 0 0 0 3 0 0 0 1 1 1 0 3 0 0 0 0 0 1 0 0 0
Linux 0 1 1 1 2 0 0 0 0 0 0 0 0 0 0 0 1 0 1 2 1 1 1 0 0 0 0 0 2 0 0 1 0 0 0 0 0 0 0 0 0 1 1 2 1 0

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