-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
feat: support importing css with ?raw #5796
Conversation
|
looks like a new feature |
In this case we should add p2, rename PR and potentially add to next meeting notes to discuss if there is not something overseen. I darkly remember that something was different with css?raw any why it was not there yet 🤔 But I don't know anymore 😕 |
0e7c72b
to
cd5f7e1
Compare
The PR title does sound like a feat, but I'll try to argue given that:
My 2c (disclaimer: I'm the one who reported and needs the fix, so I'm probably biaised ! please pursue as you see fit, and thanks for the PR !) |
3ce9c7f
to
545ba11
Compare
You might have misunderstood this. I thing css doesn't count as asset but known usable file. Where as glsl or something like that is a real asset. Like in the example in the docs. |
Fair enough, though the line may be thin, |
545ba11
to
576cc54
Compare
It's strange, some old test cases keep failing with the error message
and I also see the phrase at the top of the
am I missing something? |
f5af289
to
66f1efd
Compare
Also hitting this issue, Use case for us it to import raw css file to be using in pagejs for print styles. IMO if I declare something to be raw - like the raw-loader in webpack, I should get it raw. Not sure if this could be accomplished with a postcss plugin maybe? |
6617e19
ca9d0ba
to
c992132
Compare
c992132
to
eb1d12c
Compare
Please rename title before merging to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a comment at the other PR:
Evan's comment here might be relevant as well, and I'm not sure if there's more needed to address that.
I think it's fine for now as it'll make ?url
less broken until we officially support css ?url
(if there happens to be a bug within it)
@bluwy yep, can close that one. |
I just ran into this issue and before I realized this PR exists, I implemented a fix in a very similar way :)) Therefore sorry for nagging, but is there anything this PR is waiting for? It would really help me if this was merged... |
68de7cb
eb1d12c
to
68de7cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Though I still have reserves for Evan's comment on ?url
#2522 (comment)
I think that comment applied only assets which require transpilation (e.g. scss), for which a user could expect This change implements the later, and while I agree it probably makes no sense for scss files, it's still both:
|
Sorry for dispersing the discussion into a PR, but my .02$ on this: I never needed the However, this sounds a bit inconsistent, so it might be worth introducing some distinction like Also, it would be great if all those prefixes were briefly documented in one place, alongside the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discussed the PR today with the team, we are good to merge it 👍🏼
did you achieve this somehow? I also faced with the fact that I want to embed compiled css tailwind in iframe to isolate a part of page |
Description
close #5724
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).