Complete the code to enable JIT mode in Tailwind CSS configuration.
module.exports = { mode: '[1]', content: ['./src/**/*.{html,js}'], theme: { extend: {} }, plugins: [] }Setting mode to jit enables Just-In-Time compilation in Tailwind CSS.
Complete the code to specify which files Tailwind should scan for class names.
module.exports = { mode: 'jit', content: ['[1]'], theme: { extend: {} }, plugins: [] }The content array tells Tailwind where to look for class names to generate CSS. Usually, source files like HTML and JS inside src folder are scanned.
Fix the error in this Tailwind config to enable JIT mode correctly.
module.exports = { mode: '[1]', purge: ['./src/**/*.{html,js}'], theme: { extend: {} }, plugins: [] }The mode property must be set to jit to enable Just-In-Time mode. The purge key is deprecated in favor of content.
Fill both blanks to configure Tailwind for JIT mode and specify content files.
module.exports = { mode: '[1]', content: ['[2]'], theme: { extend: {} }, plugins: [] }Set mode to jit and content to the source files path to enable on-demand CSS generation.
Fill all three blanks to create a Tailwind config that enables JIT, scans source files, and extends the theme colors.
module.exports = { mode: '[1]', content: ['[2]'], theme: { extend: { colors: { primary: '[3]' } } }, plugins: [] }This config enables JIT mode, scans source files for class names, and adds a custom primary color to the theme.