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.

Question - How to use postcss?

See original GitHub issue

Not sure if this is the right spot, but I am looking on how to use postcss on build of a library. I use normal .css files, but I @apply tailwind classes (for example) to it. How can I go about extending this to support postcss?

Thank You

Version Information

$ node_modules/.bin/ng-packagr --version
ng-packagr:            5.7.1
@angular/compiler:     8.2.14
rollup:                1.25.2
tsickle:               0.37.1
typescript:            3.5.3

Please include all version numbers that might be relevant, e.g. third-party libraries

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
junypercommented, Apr 1, 2020

What about using https://github.com/michael-ciniawsky/postcss-load-config to load a postcss config file (if it exists) and falling back to the defaults (the plugins that are in use now) if it’s not there?

1reaction
alan-agius4commented, Jan 5, 2020

Currently it’s not possible. I’ll mark this as a feature request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Writing a PostCSS Plugin
Ask questions · PostCSS twitter with latest updates. Step 1: Create an idea. There are many fields where writing new PostCSS plugin will...
Read more >
Newest 'postcss' Questions - Stack Overflow
I want to run purgeCSS on my CSS, by looking at my .js code to see which selectors are used, but that will...
Read more >
PostCSS: Sass's New Play Date - Toptal
If you're using a task runner, using PostCSS is as easy as adding it to the pipeline of tasks you currently have, right...
Read more >
An Introduction to PostCSS - SitePoint
What is PostCSS ? · You start with standard CSS. PostCSS is to CSS what Babel is to JavaScript. · Use the plugins...
Read more >
postcss-loader | webpack - JS.ORG
You need webpack v5 to use the latest version. For Webpack v4, you have to install postcss-loader v4. ... Then add the plugin...
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