Answer the question
In order to leave comments, you need to log in
How to merge in laravel 8 postcss tailwind scss?
How to merge in laravel 8 postcss tailwind scss?
const mix = require('laravel-mix');
mix.js('resources/js/app.js', 'public/js')
.sass('resources/css/app.scss', 'resources/css/app.css')
.postCss('resources/css/app.css', 'public/css', [
require('postcss-import'),
require('tailwindcss'),
require('autoprefixer'),
]);
if (mix.inProduction()) {
mix.version();
}
Answer the question
In order to leave comments, you need to log in
Can use laravel-mix-tailwind
// webpack.mix.js
const mix = require('laravel-mix');
require('laravel-mix-tailwind');
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.tailwind();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question