tailwind install in laravel
1. npm install;
2. npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
3. resources/css/app.css ->
@import "~tailwindcss/base.css";
@import "~tailwindcss/components.css";
@import "~tailwindcss/utilities.css";
4.webpack.mix.js -> in postCss[
require("tailwindcss"),
require("autoprefixer"),
]
5.npx tailwindcss init
6.tailwind.config.js ->
purge[ './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
'they defers from projects to project ',
]
7. add to the main rendered file
link -- <link rel="stylesheet" href=" {{ asset('css/app.css') }} ">
js -- <script src=" {{asset(js/app.js)}} "></script>