B. All HTML files inside the app folder and its subfolders
C. All files inside app folder with any extension
D. Only JavaScript files inside the app folder
Solution
Step 1: Analyze the glob pattern './app/**/*.html'
The ** means any subfolder inside app, and *.html means all HTML files.
Step 2: Determine which files match
So, Tailwind scans all HTML files in app and any nested folders.
Final Answer:
All HTML files inside the app folder and its subfolders -> Option B
Quick Check:
Double star + .html = all HTML recursively [OK]
Hint: Double star means recursive folders, *.html means HTML files [OK]
Common Mistakes:
Thinking it scans only top-level files
Assuming it scans all file types
Confusing file extensions in pattern
4. You notice your Tailwind CSS file is very large and includes unused styles. Which of these is the most likely cause related to content configuration?
medium
A. You did not install the Tailwind plugin
B. You forgot to add @tailwind base; in your CSS
C. The content paths are missing or incorrect, so Tailwind scans no files
D. You used too many custom colors in the theme
Solution
Step 1: Understand tree-shaking in Tailwind
Tailwind removes unused CSS by scanning files listed in content.
Step 2: Identify impact of wrong content paths
If content is empty or wrong, Tailwind can't find used classes and keeps all styles.
Final Answer:
The content paths are missing or incorrect, so Tailwind scans no files -> Option C
Quick Check:
Wrong content paths = no tree-shaking [OK]
Hint: Check content paths if CSS is too big [OK]
Common Mistakes:
Blaming CSS directives instead of content config
Ignoring the importance of file paths
Assuming plugins affect CSS size directly
5. You want to optimize your Tailwind CSS build by including only classes used in your React components inside src/components and your HTML files in public. Which content configuration is best?
hard
A. content: ['./src/**/*.{js,jsx,ts,tsx,html}', './public/**/*.{js,jsx}']
B. content: ['./src/components/*.js', './public/*.html']
C. content: ['./src/components/**/*', './public/**/*']
D. content: ['./src/components/**/*.{js,jsx,ts,tsx}', './public/**/*.html']
Solution
Step 1: Include all React component file types in src/components
React components use extensions js, jsx, ts, tsx, so include these with a recursive glob.
Step 2: Include all HTML files in public folder recursively
Use ./public/**/*.html to cover all HTML files in public and subfolders.
Step 3: Avoid overbroad or incomplete patterns
content: ['./src/components/**/*.{js,jsx,ts,tsx}', './public/**/*.html'] precisely targets needed files without extra unrelated files.
Final Answer:
content: ['./src/components/**/*.{js,jsx,ts,tsx}', './public/**/*.html'] -> Option D
Quick Check:
Specific extensions + recursive glob = best practice [OK]
Hint: List exact file types and folders with recursive glob [OK]
Common Mistakes:
Using too broad globs that include unused files
Missing some React file extensions
Not using recursive glob for nested files
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.