All Projects → PeterDaveHello → web-minify-helper

PeterDaveHello / web-minify-helper

Licence: other
Help web developer to make their js & css files minified easily!

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to web-minify-helper

flask minify
A Flask extension to minify request's response for html, js, css and less.
Stars: ✭ 59 (+391.67%)
Mutual labels:  minify
minifier
Middleware to minify Html, CSS and Javascript responses
Stars: ✭ 15 (+25%)
Mutual labels:  minify
yii2-minify-url
Project on YII2 framework for create short url (url shortener)
Stars: ✭ 15 (+25%)
Mutual labels:  minify
uglify
PHP wrapper to execute uglify-js/clean-css node package or fallback to PHP alternatives
Stars: ✭ 16 (+33.33%)
Mutual labels:  minify
frontend-starter-kit-with-gulp
Frontend Starter Kit with Gulp for either Themeforest Projects or customizable projects.
Stars: ✭ 34 (+183.33%)
Mutual labels:  minify
MinifyAllCli
📦 A lightweight, simple and easy npm tool to 𝗺𝗶𝗻𝗶𝗳𝘆 JSON/C, HTML and CSS! Also known as MinifyAll core! ⭐ Usable as 𝑪𝑳𝑰 tool or 𝒊𝒎𝒑𝒐𝒓𝒕𝒂𝒃𝒍𝒆 in TS/JS as a 𝑴𝑶𝑫𝑼𝑳𝑬 🥰
Stars: ✭ 21 (+75%)
Mutual labels:  minify
Autoptimize
Official Autoptimize repo on Github
Stars: ✭ 245 (+1941.67%)
Mutual labels:  minify
postcss-clean
PostCss plugin to minify your CSS with clean-css
Stars: ✭ 41 (+241.67%)
Mutual labels:  minify
node-mollify
middleware for minify
Stars: ✭ 17 (+41.67%)
Mutual labels:  minify
Alom
Alom PHP Obfuscator / Encoder can protect from your codes
Stars: ✭ 50 (+316.67%)
Mutual labels:  minify
webpack-json-access-optimizer
Webpack plugin to tree-shake and minify JSON modules
Stars: ✭ 34 (+183.33%)
Mutual labels:  minify
express-minify
Automatically minify and cache your javascript and css files.
Stars: ✭ 85 (+608.33%)
Mutual labels:  minify
pug-symfony
Pug (Jade) template engine for Symfony
Stars: ✭ 40 (+233.33%)
Mutual labels:  minify
MinifyAll
A 𝗩𝗦𝗖𝗼𝗱𝗲 𝗺𝗶𝗻𝗶𝗳𝗶𝗲𝗿 for JS, JSON/C, CSS, and HTML, you will love its simplicity! 🌟 𝘾𝙤𝙢𝙥𝙧𝙚𝙨𝙨 and 𝙜𝙯𝙞𝙥 files and folders 📦 Reduce your bundle and file sizes with lightning speed ⚡
Stars: ✭ 54 (+350%)
Mutual labels:  minify
booto
😍A light framework for React Application. Easy for life!
Stars: ✭ 18 (+50%)
Mutual labels:  minify
rollup-plugin-closure-compiler-js
Rollup plugin for optimizing JavaScript with google-closure-compiler-js.
Stars: ✭ 31 (+158.33%)
Mutual labels:  minify
LaraOutPress
This is simply compress your final out of Larvel Application and serve to the browser.
Stars: ✭ 56 (+366.67%)
Mutual labels:  minify
vbsmin
VBScript minifier
Stars: ✭ 19 (+58.33%)
Mutual labels:  minify
watch-any-movie
A Netflix Clone App built using React js , Material UI & OMDb API that allows searching of 1000+ movies and provides information about their plot, IMDB rating, MetaScore, Genre, and Year in which it is published, along with high-quality audio and video streaming.
Stars: ✭ 31 (+158.33%)
Mutual labels:  minify
relateurl
Create a relative URL with options to minify.
Stars: ✭ 52 (+333.33%)
Mutual labels:  minify

Web minify helper!

Gitter chat dependencies Status

Let me help you minify css and js files automatically and easily!

This is only a shell script; it depends on bash shell, grep, curl and nodejs/npm.

It is based on clean-css, uglify-js and javascript-minifier.com/cssminifier.com.

Feel free to contribute to the project if you want!

Requirements

  • Bash shell
  • grep
  • curl
  • Node.js >= (4.0)

How to use?

$ git clone --recursive https://github.com/PeterDaveHello/web-minify-helper.git
$ cd web-minify-helper
$ npm install

First go to the target directory you want to minify, then run the script(path_of_script/minify.sh). Or you can pass the directory's path as a parameter to the script!

You may even place the script file (or make a link to it) under the $HOME/bin directory, allowing you to conveniently run this script from any directory!

Explanation

The script will scan all the directories under the current working directory, except path with '.git'.

Then, it will check all the js & css files to see if they already have a minified version (currently, it recognizes it by looking for a .min in the filename, before the file extension).

If the file does not have a minified version, it will minify it.

Furthermore, even if there is a minified version available, the script will compare the last modified time between the original file and its minified version. If the original one is newer than the minified one -- which means the minified file is older than the original -- then it will replace the old minified file with a new minified version!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].