DeveloperBreeze

Auto-Reload Development Tutorials, Guides & Insights

Unlock 1+ expert-curated auto-reload tutorials, real-world code snippets, and modern dev strategies. From fundamentals to advanced topics, boost your auto-reload skills on DeveloperBreeze.

Automatically Detect New Components in Storybook Without Restarting the Server

Tutorial October 10, 2024
javascript

Ensure that your tailwind.config.js file includes all necessary file types in the content array. Here’s an example configuration:

// tailwind.config.js
module.exports = {
  content: [
    './src/**/*.html',
    './src/**/*.js',
    './src/**/*.jsx',
    './src/**/*.ts',
    './src/**/*.tsx',
    './.storybook/**/*.{js,jsx,ts,tsx}', // Include Storybook files
  ],
  theme: {
    extend: {},
  },
  plugins: [],
};