Git Product home page Git Product logo

css-prepare's Introduction

CSS Prepare

A "work in progress" (ie. not yet ready for prime-time) minifier/preprocessor for CSS:

  • parses CSS from multiple files, including a limited form of inheritence to enable base stylesheets to be used intelligently

  • can emit warnings when encountering invalid CSS

  • accepts "colour" and "background-colour" properties for people that habitually spell correctly

  • optimises output CSS files by omitting unnecessary source elements such as comments, non-significant whitespace and redundant rules

  • useful preprocessing features, such as

    • different block-level and line-level comment styles
    • reusable definitions
    • automatic expansion of commonly replicated CSS rules (eg. border-radius, -moz-border-radius, -webkit-border-radius)

css-prepare's People

Contributors

georgebrock avatar norm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

css-prepare's Issues

Missing verbatim blocks in @imported stylesheets

do_import_rules calls parse on @imported stylesheets, which strips comments (including /*! verbatim */ comments). The resulting statements are added to the importing stylesheet and parsed again, so anything invalid in the verbatim block is dropped.

I'd fix it, but I don't know enough Perl. Sorry.

Unclean exit with code 141 when client goes away

If the client closes their connection to the dev server's socket while the server is still processing files, the dev server will exit with a code of 141. It should just optionally log the disconnection, and then continue to function.

Creates a named pipe in current directory

This fails if the current directory is read only or is on a mounted filesystem that doesn't support pipes (vmhgfs etc.)

Possibly supply a switch to specify where the pipe is to be created, or use /tmp?

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.