Performance: Content configuration for tree-shaking
HIGH IMPACT
This affects the final CSS bundle size and page load speed by removing unused styles.
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx,html}', './public/**/*.html'],
theme: { extend: {} },
plugins: [],
};module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
// missing some HTML or template files
theme: { extend: {} },
plugins: [],
};| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Incomplete content config | N/A | N/A | High due to large CSS | [X] Bad |
| Complete content config | N/A | N/A | Low due to small CSS | [OK] Good |