I was really served, the installation of a day of various problems reported wrong, the installation of official website documents is completely not good, I search the tutorial on the net pull a lot of useless code.
Find out how it works and record it here.
1. Install tailwindcss
npm i tailwindcss
2. Install postcss
npm i postcss
3. Install postcss-loader (pay attention not to install too high version may cause compatibility problems)
npm i [email protected]
4. Add tailwindcss to postcss.config.js without creating a new tailwindcss
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
}
5. New CSS is added and introduced
@tailwind base;
@tailwind components;
@tailwind utilities;
6. At this point you can use the official website style class name to test, if there is no problem with the other configuration of the official website.
Read More:
- Completely solve install_ FAILED_ UPDATE_ Incompatible installation error, the installation package is not consistent with the previous installation package signature on the device
- Android studio installation virtual machine error ® HAXM installation failed.
- Another installation will pop up when Windows installs the application inprogress.you must complete that installation before continu
- Error 1500. Another program is in progress. You must complete another installation before continuing with this installation.
- Win10 installation PostgreSQL error running… And installation process
- MySQL installation error. Netframeword installation failed
- Non 7z achieve. Error reported during CUDA installation. Solution: the installation file is damaged
- The installation of docker desktop failed. After successful installation, the docker can not be started
- Virtual Installer . Installation failed! Error: a serious error occurred during installation
- Error: No such keg: /usr/local/Cellar/node&install nvm&brew installation&Oh my zsh.git installation&git set alias&No bundle URL prese
- Installation problems of aptana studio 3
- Python installation tutorial
- Jython installation
- Installation problems in using SCSS
- Aptana studio 3 installation
- Node configuration environment variable and global installation of webapck
- Installation of Python on MAC
- NPM and cnpm installation failure solution
- Troubleshooting of errors in the installation and use of scienceplots
- VTK installation