DeveloperBreeze

Vite Programming Tutorials, Guides & Best Practices

Explore 4+ expertly crafted vite tutorials, components, and code examples. Stay productive and build faster with proven implementation strategies and design patterns from 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: [],
};