cedaro / grunt-wp-css Goto Github PK
View Code? Open in Web Editor NEWFormat style sheets according to the WordPress CSS coding standards.
License: MIT License
Format style sheets according to the WordPress CSS coding standards.
License: MIT License
Currently, the process is:
test/fixtures/*
to tmp/*
(requiring grunt-contrib-copy).tmp/*
src and save to tmp/*
dest.Since wpcss can save to a new destination already, why not:
test/fixtures/*
src and save to tmp/*
dest.and avoid grunt-contrib-copy dependency altogether?
Basically, the same issue as cedaro/grunt-wp-i18n#40 .
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.