sonofmagic / weapp-tailwindcss

weapp-tailwindcss - bring tailwindcss to weapp ! 把 tailwindcss 原子化思想带入小程序开发吧 ! weapp-vite 把现代化的开发模式带入小程序开发
https://weapp-tw.icebreaker.top
MIT License
1.2k stars 87 forks source link

是否支持引用外部包组件? #247

Closed Ceelog closed 8 months ago

Ceelog commented 11 months ago

在 uni-app 开发小程序的时候,引入外部包的组件:

import Cell from '@mypkg/src/components/Cell.vue'

这个组件也使用了 tailwindcss,但是最后编译打包的时候,并没有将 Cell.vue 中 util class 转义到小程序 app.wxss 文件中

请问:weapp-tailwindcss 不支持这种引入外部组件的场景吗?

Ceelog commented 11 months ago
sonofmagic commented 11 months ago

我文档网站中添加了这个 case,详见:

https://weapp-tw.icebreaker.top/docs/quick-start/build-or-import-outside-components