Skip to content
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

@unocss/webpack after 0.45.8 is not work #1455

Closed
MellowCo opened this issue Aug 22, 2022 · 7 comments
Closed

@unocss/webpack after 0.45.8 is not work #1455

MellowCo opened this issue Aug 22, 2022 · 7 comments
Labels
bug Something isn't working webpack

Comments

@MellowCo
Copy link
Contributor

use unocss/examples/vue-cli4 and unocss/examples/vue-cli5

vue-cli4

@unocss/webpack with 0.45.8

image

is ok

image

@unocss/webpack after 0.45.8 like 0.45.9 or 0.45.12

image

is not work

image

vue-cli5

@unocss/webpack with 0.45.8

image

is ok

image

@unocss/webpack after 0.45.8 like 0.45.9 or 0.45.12

image

is not work

image

@PatrickChen928
Copy link
Contributor

It looks ok in my project or example in unocss. Maybe you can add a minimal reproduction?

@yangguang6
Copy link

yangguang6 commented Aug 23, 2022

minimal reproduction:
https://github.com/yangguang6/unocss-webpack-issue

class="p-32px" is not work:
POPO20220823-113937

@PatrickChen928
Copy link
Contributor

I tried to run your repo and it is ok in first load, but not take effect in HMR load. In my mind, this is an old problem in webpack. 🤔

@MellowCo
Copy link
Contributor Author

minimal reproduction:

vue-cli4 vue-cli5

@antfu
Copy link
Member

antfu commented Aug 23, 2022

Could relate to unjs/unplugin#155?

@antfu antfu added the webpack label Aug 23, 2022
@Candinya
Copy link

Same issue but only reproduced on Windows (Windows 11 21H1, Node v18.7.0), seems OK on macOS (macOS 12.4, Node v18.7.0). There might be an OS related issue? 🤔

@lamualfa
Copy link
Contributor

lamualfa commented Oct 5, 2022

@antfu any idea about this issue?

@antfu antfu closed this as completed in bce243b Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working webpack
Projects
None yet
Development

No branches or pull requests

6 participants