Document how to declare a PostCSS plugin in an ES6/TypeScript module
See original GitHub issueIt’s currently unclear how to properly declare a PostCSS module using ES6 module syntax (which TypeScript also uses idiomatically). The suggested module.exports
isn’t idiomatic in these systems.
Issue Analytics
- State:
- Created a year ago
- Comments:19 (19 by maintainers)
Top Results From Across the Web
Writing a PostCSS Plugin
For public plugins: Use the guide in PostCSS plugin boilerplate to create a plugin directory. Create a repository on GitHub or GitLab. Publish...
Read more >Issues · postcss/postcss · GitHub
Contribute to postcss/postcss development by creating an account on GitHub. ... Document how to declare a PostCSS plugin in an ES6/TypeScript module.
Read more >HTML and CSS — Zulip 7.0-dev+git documentation
Stylesheets are written in CSS extended by various PostCSS plugins; ... in the HTML templates under templates/ with the bundles declared in tools/webpack....
Read more >Using Tailwind CSS with Django 3.x - weautomate.org
For an optimal setup, we'll be using Tailwind as a postcss plugin. ... init -p which will create tailwind.config.js and postcss.config.js.
Read more >So you want to make a PostCSS plugin - CSS-Tricks
The PostCSS API is the fastest and most accurate CSS parser that I have ever used. The documentation behind it is very well...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Okay, I’ve found an incantation that works:
It would be nice if there were an alternative way to declare these plugins that was more module-system friendly—allowing the
PluginCreator
to be defined as the top-levelpostcss
field, for example.That was from before my time as a maintainer of these plugins so I would have to start digging through old commits.
Most likely this happened :
esm
,deno
,webpack
, …esm
andcjs
I don’t dare removing it now 😃