Giter Club home page Giter Club logo

grunt-wp-css's People

Contributors

bradyvercher avatar garyjones avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grunt-wp-css's Issues

Drop grunt-contrib-copy dependency

Currently, the process is:

  1. copy test/fixtures/* to tmp/* (requiring grunt-contrib-copy).
  2. Run wpcss over tmp/* src and save to tmp/* dest.

Since wpcss can save to a new destination already, why not:

  1. Run wpcss over test/fixtures/* src and save to tmp/* dest.

and avoid grunt-contrib-copy dependency altogether?

Drop CSSBeautify?

According to the CSSBeautify website, all that CSSBeauty can do is:

Only one blank line between two rulesets
Closed curly brace is at its own line
There is no empty line between declarations inside a ruleset
No space between the property name and colon
One space between colon and the property value
Comments are preserved

CSSComb can cover pretty much all of that already, and where it can't, we could enhance the contents.replace() calls that already exist. That way, we're only passing the source through two process (csscomb and custom replacements) instead of three, which would make debugging considerably easier.

Disabling the call to cssbeautify() does currently make the comments_spacing test fail, hence the need for tweaking the custom replacements slightly.

Breaks Sourcemaps?

I've been working on getting source maps working for our theme and plugin configs and i think I've manged to trace the issue back to this module.

Has anyone else run into issues with source maps being inaccurate/broken after the file is run through grunt-wp-css?

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.