windicss / windicss-webpack-plugin

🍃 Windi CSS for webpack ⚡
https://windicss.org/integrations/webpack.html
79 stars 19 forks source link

Removing the rule will cause other loaders to not get the correct options #111

Closed keuby closed 2 years ago

keuby commented 2 years ago

Describe the bug The loader removal operation was performed in the windicss-style-pitcher of the plug-in, which would cause other loaders to fail to get the loader options value configured in module.rules correctly, resulting in abnormal packing

To Reproduce Steps to reproduce the behavior:

  1. Clone repository 'https://github.com/keuby/unplugin-bug-demo'
  2. Run 'yarn install && yarn build'
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

harlan-zw commented 2 years ago

Hey @keuby

Thanks for digging into this and the reproduction repo, I was able to replicate the issue and find the problem. As far as I can tell my solution fixes the issue without introducing any regression, but if you see anything obvious please let me know.

The bug fix is in the new release 1.7.1