Closed rowild closed 2 years ago
Can you send PR? I am working on another open source project right now.
I would love to, but I have no idea, where the error is. (If it is at all an error with postcss...) However, I prepared a lot, which is, what you ask (and what every repo owner asks). (And I also have other projects to work on, so we are all in the same boat.) I would appreciate it, if you at least could have a look at the repo instead of just requesting a PR. That much time should be there for a bug reporter who confides to the rules!
Sorry, I will not have time for this at least in next few weeks
The wonderful nature of open source! Everybody asks to collaborate, even if it is only proof reading. And then? The most-read message is "I have no time". If I add up the time that I had to read that sentence, I cold have written 3 operas already.
Anyway: Good luck with your other project and keep your people happy there!
Found my error: instead of using an object, i need to use an array.
plugins: { ... } ==>. plugins: [ ... ]
All good.
Details
On tailwindcss.com there is, among thers, an installation guide for vite and tailwindcss: https://tailwindcss.com/docs/guides/vue-3-vite The page also offers more information on how to integrate postcss: https://tailwindcss.com/docs/using-with-preprocessors
I added up all these to this postcss.config.js:
However, I get these errors_
As soon as I comment out / remove all postcss configuration, the setup works again.
Reproduction (Code)
Reproduction: https://github.com/rowild/vite-postcss-problem https://codesandbox.io/s/crazy-currying-ykhwr
Environment
|OS|node|npm/yarn|package| |:macOS Catalina:|:(16|14|12)@latest:|:npm 8:|:?(@latest):| |[name][version]|[version]|[version]|[version]|