framework icon indicating copy to clipboard operation
framework copied to clipboard

Css fails after packaging

Open Wan-xh opened this issue 3 years ago • 5 comments

after building, Inconsistent css property selectors

image image

Wan-xh avatar Sep 20 '22 08:09 Wan-xh

Would you provide a reproduction? 🙏

danielroe avatar Sep 20 '22 08:09 danielroe

你能提供一个复制品吗?🙏

If the component contains client only, the packaged css selector will have problems

app.zip

Wan-xh avatar Sep 20 '22 10:09 Wan-xh

Thanks! Minimal reproduction for my future use: https://stackblitz.com/edit/github-k4lob5.

danielroe avatar Sep 20 '22 11:09 danielroe

If it helps, for now, a workaround is to disable experimental.treeshakeClientOnly.

danielroe avatar Sep 20 '22 11:09 danielroe

如果它有帮助,目前,一种解决方法是禁用experimental.treeshakeClientOnly.

I have solved,thanks

Wan-xh avatar Sep 21 '22 06:09 Wan-xh

let's track in https://github.com/nuxt/framework/issues/8397.

danielroe avatar Oct 28 '22 14:10 danielroe