GithubHelp home page GithubHelp logo

dominikg / css-minification-benchmark Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goalsmashers/css-minification-benchmark

0.0 1.0 0.0 2.47 MB

A comparison of CSS minifiers for node.js

Home Page: https://goalsmashers.github.io/css-minification-benchmark/

License: MIT License

JavaScript 0.49% CSS 99.51%

css-minification-benchmark's Introduction

Build Status devDependency Status

What is css-minification-benchmark?

A comparison of CSS minification engines.

FAQ

Which engines are covered?

How can I see the results?

Clone the repository, install the dependencies with npm install and then run node ./bin/bench.js. That's it!

If you prefer to see results without cloning the repo here are the most recent ones.

How can I generate the html report?

Just run node ./bin/bench.js --html > report.html

How can I test my CSS file?

Just copy your file to the data directory (make sure the filename ends with .css) and re-run the benchmark.

How can I add a new minifier to the list?

  • add it to package.json as a devDependency
  • run npm install
  • require it in lib/minify.js and add it to minifiers hash
  • run npm run bench
  • add it to this file in "Which engines are covered?" section above
  • send a PR (if you wish to have it included)

How can I compare a subset of minifiers?

Just run node ./bin/bench.js --only csso,cssnano (it's turned into /.*(csso|cssnano).*/ regex)

Can I get the compressed gzip size as well?

Run node ./bin/bench.js --gzip to measure the gzip size instead of the regular file size.

License

css-minification-benchmark is released under the MIT License.

css-minification-benchmark's People

Contributors

alexander-akait avatar army8735 avatar ben-eb avatar denji avatar dependabot[bot] avatar diegourban avatar herrernst avatar jakubpawlowicz avatar lahmatiy avatar marek-saji avatar martijncuppens avatar nicolasbadia avatar shinnn avatar tavriaforever avatar xhmikosr avatar

Watchers

 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.