From 65da95a2ca386921e41617fb15e90d18d2162262 Mon Sep 17 00:00:00 2001 From: Ahmed Helal Ahmed Date: Sat, 8 Jan 2022 08:18:50 +0200 Subject: [PATCH] Fix tailwind not compile just in time --- tailwind.config.js | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index 57e483c..5aafc46 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,11 +1,17 @@ module.exports = { - content: [ - "./resources/**/*.blade.php", - "./resources/**/*.js", - "./resources/**/*.vue", - ], - theme: { - extend: {}, - }, - plugins: [], + mode: 'jit', + content: [ + "./resources/**/*.blade.php", + "./resources/**/*.js", + "./resources/**/*.vue", + ], + // These paths are just examples, customize them to match your project structure + purge: [ + './public/**/*.html', + './resources/**/**/*.{js,jsx,ts,tsx,vue}', + ], + theme: { + extend: {}, + }, + plugins: [], }