【问题标题】:How to setup tailwind css for custom-react-app configuration?如何为自定义反应应用程序配置设置顺风 css?
【发布时间】:2021-10-28 00:39:43
【问题描述】:

我正在开发 custom-react-app(不是 create-react-app),我很困惑,或者真的不知道如何使用 webpack 在 custom-react-app 中设置 tailwind css。

【问题讨论】:

  • 请编辑问题以将其限制为具有足够详细信息的特定问题,以确定适当的答案。

标签: javascript reactjs webpack tailwind-css


【解决方案1】:

尝试 npm 安装: npm install tailwindcss

在此处查找文件配置详细信息: https://tailwindcss.com/docs/installation#create-your-configuration-file

您可以在此处找到完整的详细信息: https://tailwindcss.com/docs/installation

【讨论】:

  • 这是用于 Create-react-app 的,我正在寻找自定义设置。如果您能解释自定义设置,将不胜感激。
【解决方案2】:

根据顺风文档:

没有在列表中看到您最喜欢的工具?我们一直在努力开发新的 指南,但与此同时,您可以按照以下说明进行操作 installing Tailwind CSS as a PostCSS plugin 改为设置 很快。

【讨论】:

  • 感谢您的回答,但这是针对 Create-react-app 的,我正在寻找自定义设置。如果您能解释自定义设置,将不胜感激。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-06-13
  • 1970-01-01
  • 1970-01-01
  • 2011-11-28
  • 1970-01-01
相关资源
最近更新 更多