A simple script to set up React, Tailwind, Webpack, Babel. In other word a React + Tailwind Boilerplate.
- Bash
- Wget
- NPM >= 8.1.0
- NodeJS >= v16.13.0
- Make a empty directory for the project and download the starter script
wget https://raw.githubusercontent.com/arwildo/react-starter/master/start.sh
- Run the starter script
bash start.sh
- Type the project info (title, desc, author, etc)
- Open
package.json
and changescripts
to
"scripts": {
"start": "webpack serve --mode development",
"build": "webpack --mode production"
},
- Open
tailwind.config.js
and changecontent
to
content: ["./src/**/*.{html,js}"],
- Done
npm start