-
Notifications
You must be signed in to change notification settings - Fork 166
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
[Bug]: output.inlineStyles: true
doesn't seem to work in dev
#2957
Comments
output.inlineStyles
doesn't seem to workoutput.inlineStyles: true
doesn't seem to work
output.inlineStyles: true
doesn't seem to workoutput.inlineStyles: true
doesn't seem to work in dev
After a quick investigation, I guess it's because of this check, right?
Any reason why this is being disabled in |
According to the docs, this option works only in production mode.
|
Crap I'm dumb as a rock. I didn't see that in the docs, sorry 🤦 I think the fact that Webpack defaults to them even in dev messed up with me. I'll try to find a way to make it work anyway. Thanks! |
We can add a new option to enable inline styles in the dev mode, do you need to use it? |
@chenjiahan thanks, it would be awesome but I'm sure you have other priorities :) so, no worries for now we'll deal with it in some other way. |
Get, thanks for the feedback |
Hi, I have created a pull request to solve this issue. |
Version
Details
I'm not sure if I have some wrong expectations, but
output.inlineStyles: true
doesn't seem to inline stylesheets into the resulting HTML in dev. Is it supposed to work only on production builds?Reproduce link
https://github.com/matteom-synth/rsbuild-issue-repro-3
Reproduce Steps
pnpm install
.pnpm dev
.output.inlineStyles
is set totrue
, the stylesheet should be inlined into the HTML. But it doesn't seem to be the case:The text was updated successfully, but these errors were encountered: