Sometime Laravel mix shows 99% when it's actually completed.
You shouldn't see all tailwind classes because it's using JIT compiler which means you should only see that classes that you used.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hi guys, posted a thread yesterday about installing tailwind, thanks to johnDoe220 who gave me some hint, but the issue with tailwind is still there. i followed tailwind doc and laravel doc to install tailwind. when i run npm run dev / npm run prod / npm run watch, the Mix never hit 100% complete, it can be 37%, 90% 95%, even 99%, but never reach 100%, and the result is that the compiled /css/app.css file does not contain some tailwind classes, this has been a pain in my neck for the whole day.
when switching back to tailwind CDN link , everything is fine. node and npm are the latest version as well as postcss, autoprefixer. is it a problem of Mix or tailwind, or any setting that i messed up?
here are the code for the installaion
in my tailwind.config.js
module.exports = {
content: [
'./storage/framework/views/*.php',
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./resources/**/*.vue',
],
theme: {
extend: {},
},
plugins: [],
}
in my webpack.mix.js
mix.js('resources/js/app.js', 'public/js')
.postCss('resources/css/app.css', 'public/css', [
require('tailwindcss')
//
]);
in my resources/css/app.css
@tailwind base;
@tailwind components;
@tailwind utilities;
finally in my public/css/app.css (missing values, and the final compile contains 1325 lines of code , not sure if this is the whole contents of compilation, guess not)
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x: ;
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
--tw-numeric-spacing: ;
--tw-numeric-fraction: ;
--tw-ring-inset: ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgb(59 130 246 / 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur: ;
--tw-brightness: ;
--tw-contrast: ;
--tw-grayscale: ;
--tw-hue-rotate: ;
--tw-invert: ;
--tw-saturate: ;
--tw-sepia: ;
--tw-drop-shadow: ;
Please or to participate in this conversation.