Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
postcss-processor-order
Advanced tools
Changelog
[0.1.1] - 2016-10-24
Readme
PostCSS plugin for sorting processors passed to postcss.
Because you really want to forget about plugins priority and add processors in any order. You want to write CSS but not think how to built your preprocessor from the bricks. The only requirement that this plugin should be first processor passed to PostCSS.
/* Input example */
require('postcss-processor-order')(),
require('postcss-each')(),
require('postcss-inline-svg')(),
require('stylelint')(),
require('postcss-nested')(),
require('postcss-partial-import')(),
require('postcss-svgo')(),
/* Output example */
require('postcss-processor-order')(),
require('postcss-partial-import')(),
require('postcss-each')(),
require('postcss-nested')(),
require('postcss-inline-svg')(),
require('postcss-svgo')(),
require('stylelint')()
npm i postcss-processor-order --save
postcss([ require('postcss-processor-order')(opts) ])
See PostCSS docs for examples for your environment.
order
{Array} priority of plugins. By default it uses params from config.js
There are a lot of PostCSS plugins and, I'm sure, you even not aware about half of them. I'm extending this priority list with plugins when I reach them in my code.
So, if you faster than me, please, send me your PR with modified version of config.js
where you add new plugins.
Don't forget to run npm test
before commit.
FAQs
PostCSS plugin for sorting processors passed to postcss
The npm package postcss-processor-order receives a total of 2 weekly downloads. As such, postcss-processor-order popularity was classified as not popular.
We found that postcss-processor-order demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.