question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Other ways to add postcss plugins

See original GitHub issue

Currently 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:closed
  • Created 8 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
joshwnjcommented, May 30, 2016

Closing this now that we’ve got before and after

0reactions
joeybakercommented, Aug 7, 2015

👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found