yarn add tailwindcss --dev
npm install tailwindcss --dev
npx tailwindcss init
webpack.mix.js
mix.js('resources/js/app.js', 'public/js').postCss(
'resources/css/main.css',
'public/css',
[require('tailwindcss')]
)
app.blade.php
<link href="{{ mix('/css/main.css') }}" rel="stylesheet" />
Top comments (0)