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