Code Monkey home page Code Monkey logo

linecode / cssmin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from soldair/cssmin

0.0 3.0 0.0 101 KB

this is a white space and extra char css optimizer that is smiilar to crockfords jsmin. written in c it reads from stdin and writes to stdout. it is fast enough because its in c to process css on the fly or you can concatenate all of your css into a minified file and deliver it

Home Page: http://ryanday.org

Shell 1.34% C 68.21% PHP 30.44%

cssmin's Introduction

the goal of this project is to make it easy to call this script and get reasonably
good comment and whitespace stripping from css without other dependencies.

it should just work =). its a utility so the expected use is to shell exec it from your web apps

==== how to use ====
1. checkout repo

2. cd repo dir

3. build and test the app - php is required to run the tests but it will compile without it
	./compile

4. integrate it into your apps
	$min = `test.css > ./cssmin`;

====================


hey all,
recently i had to work on some client side caching optimization. 

this means send less data compress it and make fewer requests.

i used crockfords jsmin as other more optimized jsmin tools required that 
you use compile flags or failed to support refrences to named anonymous functions

i found that with a new finite state machine and a few css spec based tweeks this jsmin would be perfect for cssmin

thus cssmin


--Ryan Day

cssmin's People

Contributors

leighmcculloch avatar soldair avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.