【文件属性】:
文件名称:cra-tailwindcss-starter:在Create React App项目中配置的Tailwind CSS
文件大小:197KB
文件格式:ZIP
更新时间:2021-04-30 20:44:33
create-react-app tailwindcss JavaScript
创建React App + Tailwind CSS
该项目是通过引导的。
在Create React App项目中 。
安装
克隆存储库
git clone https://github.com/rutikwankhade/cra-tailwindcss-starter
更改当前目录
cd cra-tailwindcss-starter
安装所有必需的依赖项并运行
npm install
npm start
可用脚本
在项目目录中,可以运行:
npm start
在开发模式下运行应用程序。 打开在浏览器中查看它。
如果您进行编辑,则页面将重新加载。 您还将在控制台中看到任何棉绒错误。
npm test
在交互式监视模式下启动测试运行器。 有关更多信息,请参见关于的部分。
npm run build
构建生产到应用程序build文件夹。 它在生产模式下正确捆绑了React
【文件预览】:
cra-tailwindcss-starter-main
----public()
--------manifest.json(492B)
--------index.html(2KB)
--------robots.txt(67B)
--------favicon.ico(4KB)
--------logo512.png(9KB)
--------logo192.png(5KB)
----tailwind.config.js(199B)
----src()
--------index.css(58B)
--------tailwind-css-logo.svg(925B)
--------App.js(779B)
--------reportWebVitals.js(362B)
--------App.test.js(246B)
--------setupTests.js(241B)
--------react-logo.png(5KB)
--------index.js(500B)
----craco.config.js(167B)
----README.md(2KB)
----.gitignore(324B)
----package-lock.json(686KB)
----package.json(947B)