-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working when using "postcss-import" with "postcss-next". #329
Comments
Wow this is a legitamite problem, we definitely need to get this fixed. Thanks for reporting this! |
Any update on the above issues and getting postcss support working with parcel? @davidnagli @devongovett ... it's the only thing preventing us from going all-in on parcel for a new project. |
Same for the postcss-partial-import plugin |
I have some additional information about this issue. I don't know very much about Parcel's implementation but I read through
Step 1 seems to be the problem. If I tested this locally by commenting out lines 31-58 of
Here is my extremely basic test case:
The CSS generated by Parcel 1.5.1 is:
This is similar to @nakoo's results in the original post and is clearly not what we would expect. The CSS generated with the modified
As I said at the top of this comment, I don't know enough about Parcel to know whether or not this is a good solution. In my extremely limited testing it solved the problem raised by this issue but it may break other things. I can't say, but hopefully the community can and will weigh in on this. |
I created a fork to use for testing: https://github.com/irritant/parcel Use the
|
I'm just using postcss-cli together with parcel, gets the job done ;) Here is basically what I do now: package.json:
styles/app.css: @import "tailwindcss/preflight";
@import "./main.css";
@import "tailwindcss/utilities"; postcss.config.js: module.exports = {
plugins: [
require("postcss-easy-import"),
require("tailwindcss")("./tailwind.js"),
require("postcss-nested"),
require("autoprefixer"),
]
} index.html: <link href="css/app.css" rel="stylesheet" /> |
hey there, any update on this issue? |
Hi guys, same question as above, any news on this? |
Still not working properly ;( |
I'm also having this issue with these plugins:
Can someone give an update on what the plan is to solve this issue, if any...? |
I'm experiencing an issue that is almost certainly related to this. @davidnagli @DeMoorJasper Are there any plans to fix this? It's a major bug that's affecting a lot of people. Edit: As indicated below, this (along with a couple other bugs) are blocking me from moving over to Parcel. If this one specifically is fixed, I could likely make the switch and lose an acceptable amount of functionality (temporarily). |
I have the same problem while using tailwindcss. I think the developers now want to focus on the development of parcel 2, that's why this may not be their top priority |
We're considering switching from Webpack to Parcel but this is the one thing that is blocking us from doing so. Suprised to see this is still an issue since December 2017... how are folks managing to use Parcel + PostCSS when working with global variables across different css imports? It's a pretty common thing to use @devongovett @garthenweb do you have any plans on fixing this for current Parcel users? Is this fixed in v2? Would be great if this could be pushed up in priority. |
@garygreen We had the same issue when migrating. Using a We just merged support for the data property in the v2 branch today. Not sure if there is/ will be a better way in the future. The reason why this is not working is due to the architecture of parcel, there is no easy way to implement this as far as I am aware. Maybe the core team has more information. |
The css import problem (#1165) is already fixed in Parcel 2, because now the PostCSS transform is ran before imports are handled by Parcel. (Apart from a caching problem reported in #3980) I've just tested the example in the original issue description and it works correctly with Parcel 2. Feel free to report any problems or suggestions you have. |
🐛 bug report
🎛 Configuration (.babelrc, package.json, cli command)
.postcssrc
CLI
app.js
app.css
root.css
body.css
You can make this problem with this attachment. You can do
$ yarn run start
worked.zip
🤔 Expected Behavior
Postcss
Exported CSS
😯 Current Behavior
Exported CSS
💁 Possible Solution
This setting is working great when using webpack + postcss-loader.
🔦 Context
I tried changing the syntax of postcss setting file though there is no hope.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: