【问题标题】:How to bundle tailwind css inside a Vue Component Package如何在 Vue 组件包中捆绑 tailwind css
【发布时间】:2022-06-16 19:03:07
【问题描述】:

在我的一个项目中,I build a nice vue3 component that could be useful to several other projects。所以我决定将它作为一个 NPM 包发布并分享给大家。

我编写了隔离组件,构建并发布了但我使用 Tailwind css 来制作样式。 当我发布和安装组件时,一切正常,但没有 css 部分的美感。

我尝试了几种配置和替代工具来生成包,该包会自动将 tailwind 作为内部依赖添加到我的包中。

有人有这方面的经验吗?如何通过向其中添加顺风 CSS 指令来构建/捆绑我的组件?

【问题讨论】:

  • 我也有同样的问题。你修好了吗?

标签: vue.js vue-component npm-install tailwind-css npm-publish


猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2017-03-10
  • 2022-11-08
  • 2021-01-11
  • 1970-01-01
  • 2020-08-08
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多