ghostavio / postcss-extract-media Goto Github PK
View Code? Open in Web Editor NEWPostCSS plugin to extract media from your css into a separated file.
License: MIT License
PostCSS plugin to extract media from your css into a separated file.
License: MIT License
investigate and fix
right now, to have it at only one @media print {}
block, something like cssmin is necessary
It is a bad time to start new plugin with PosCSS 4.0 API :D.
In 5.0 walksAtRules
will replace a eachAtRule
.
Input/output examples are required by PostCSS Plugin Guidelines because it is a best ay to explain plugin.
What says you? I think it's more descriptive.
newFile.append(postcss.parse(rule).toResult().css);
This code is really-really strange, because you should use just (it will be several time faster):
newFile.append(rule);
Can I ask, why you use so strange construction? Maybe we need to make PostCSS docs better in some way?
When I run the postcss Task I get this output:
Running "postcss:prefix" (postcss) task
Container#eachAtRule is deprecated. Use Container#walkAtRules instead.
Container#eachRule is deprecated. Use Container#walkRules instead.
Container#eachDecl is deprecated. Use Container#walkDecls instead.
Node#style() is deprecated. Use Node#raw()
Container#remove is deprecated. Use Container#removeChild
Node#before is deprecated. Use Node#raws.before
Node#_value was deprecated. Use Node#raws.value
But this does not seem to harm the tool. It's running fine and the outcome is also well.
But could this be officially fixed via rewriting it to the correct functions?
To Other
plugins section. But only after we will fix other reported issues.
Nice, plugin, BTW.
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.