Closed sbyps closed 21 hours ago
This is probably a problem with the postcss plugin. I see they have several open issues.
https://github.com/lkxian888/postcss-px-to-viewport-8-plugin/issues/30 https://github.com/lkxian888/postcss-px-to-viewport-8-plugin/issues/32
This is probably a problem with the postcss plugin. I see they have several open issues.
lkxian888/postcss-px-to-viewport-8-plugin#30 lkxian888/postcss-px-to-viewport-8-plugin#32
change to another plugin cnjm-postcss-px-to-viewport, this will generate useless and error css rules
I tried to use Vite build and get the same result:
So it's still a bug of the PostCSS plugin, not the build tools.
My reproduction: https://github.com/chenjiahan/rsbuild-repro-3692
Version
System: OS: macOS 14.6.1 CPU: (11) arm64 Apple M3 Pro Memory: 39.13 MB / 18.00 GB Shell: 5.9 - /bin/zsh Browsers: Chrome: 129.0.6668.91 Safari: 17.6 npmPackages: @rsbuild/core: ^1.0.13 => 1.0.13 @rsbuild/plugin-check-syntax: ^1.0.1 => 1.0.1 @rsbuild/plugin-less: ^1.0.1 => 1.0.1 @rsbuild/plugin-sass: ^1.0.2 => 1.0.2 @rsbuild/plugin-vue2: ^1.0.1 => 1.0.1
Details
run pnpm dev several times
sometimes is right
lightningcssLoader: false, sometimes got no landscape css rules
lightningcssLoader: true sometimes got no landscape css rules
sometimes will repeat and generate error rules
Reproduce link
https://github.com/sbyps/rspack-demo
Reproduce Steps
run pnpm dev several times
check the test-page.css in devtool sources
set lightningcssLoader: false run pnpm dev several times
check the test-page.css in devtool sources