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 19K
  • Win 12K
  • OS X 4K
  • Linux 2K
Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9
Windows 14 10 11 19 19 15 14 15 12 13 20 18 17 18 27 8 18 20 29 15 38 17 8 12 21 15 29 13 26 7 16 16 24 22 20 15 15 16 17 24 9 18 14 10 10 20
OS X 5 3 1 5 6 5 10 3 2 2 11 9 8 4 3 0 4 5 4 7 2 5 4 2 9 2 6 5 3 1 2 1 2 6 8 9 2 1 7 6 2 2 5 2 3 3
Linux 3 3 1 3 2 1 4 0 1 3 2 2 4 7 5 1 2 4 1 3 5 3 0 1 5 1 4 4 2 0 0 0 3 7 4 4 1 1 4 5 3 5 3 0 1 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