Answers for "tailwind install in laravel"

2

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>
Posted by: Guest on August-28-2021
-1

install tailwind css laravel

npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
Posted by: Guest on May-02-2021
0

install tainwind on laravel

/* ./resources/css/app.css */
@tailwind base;
@tailwind components;
@tailwind utilities;
Posted by: Guest on July-13-2021

Code answers related to "tailwind install in laravel"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language