Other ways to add postcss plugins
See original GitHub issueCurrently if you use the -u
option it overrides all postcss plugins, including the css-modules ones, and you have to manually add them back. I can think of some cases when you’d want to do this but it feels like militant-level modularity 😃
@joshgillies what would you think about a postcssAfter
(and possibly postcssBefore
) option, which allows you to add postcss plugins to the transformation either side of the default?
Issue Analytics
- State:
- Created 8 years ago
- Comments:18 (18 by maintainers)
Top Results From Across the Web
What is PostCSS? How to Use Plugins to Automate CSS Tasks
In the root directory of your project, create a file and name it postcss.config.js. ... Inside the plugins array, we add our plugins....
Read more >postcss/postcss: Transforming styles with JS plugins - GitHub
PostCSS is a tool for transforming styles with JS plugins. These plugins can lint your CSS, support variables and mixins, transpile future CSS...
Read more >PostCSS: Sass's New Play Date - Toptal
The most common way to integrate PostCSS into your current workflow, if you're already using Sass, is to pass the compiled output of...
Read more >PostCSS - a tool for transforming CSS with JavaScript
Transform CSS with the power of JavaScript. Auto-prefixing, future CSS syntaxes, modules, linting and more are possible with hundreds of PostCSS plugins.
Read more >How to load local PostCSS plugins with postcss-loader
Our example plugin ·.exports = postcss.plugin('postcss-line-clamp', function () { · return function (root) { · root.walkDecls(function (decl) { ...
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 FreeTop 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
Top GitHub Comments
Closing this now that we’ve got
before
andafter
👍