title: React craco tailwind postcss integration
body: <p>My project use craco to start/build, I wish to integrate tailwind postcss.
  I have follow this tutorial <a href="https://dev.to/ryandunn/how-to-use-tailwind-with-create-react-app-and-postcss-with-no-hassle-2i09" rel="nofollow noreferrer">https://dev.to/ryandunn/how-to-use-tailwind-with-create-react-app-and-postcss-with-no-hassle-2i09</a>
  But as a result, I am suffering with this error:
  <a href="https://i.stack.imgur.com/XbawY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XbawY.png" alt="error" /></a></p>
  <p>My config files looks like below:</p>
  <p>craco.config.js  (this one looks like where problem lies, as I feel like the style may overriding craco style underneath, so it caused above error, but not 100% sure how to resolve this puzzl.)</p>
  <pre><code>module.exports = {
    style: {
      postcss: {
        plugins: [
          require(&quot;tailwindcss&quot;)(&quot;./tailwind.config.js&quot;),
          require(&quot;postcss-nested&quot;),
          require(&quot;autoprefixer&quot;),
        ],
      },
    },
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Oyomv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Oyomv.png" alt="craco.config.js full version" /></a></p>
  <p>postcss.config.js</p>
  <pre><code>const tailwindcss = require('tailwindcss');
  module.exports = {
      plugins: [
          tailwindcss('./tailwind.js'),
          require('autoprefixer')
      ],
  };
  </code></pre>
  <p>tailwind.config.js</p>
  <pre><code>module.exports = {
      purge: [&quot;./src/**/*.html&quot;, &quot;./src/**/*.jsx&quot;, &quot;./src/**/*.js&quot;, &quot;./src/**/*.tx&quot;, &quot;./src/**/*.tsx&quot;],
      theme: {
          extend: {
            screens: {
              xs: { max: &quot;400px&quot; },
            },
          },
        },
    };
  </code></pre>
  <p>I am running the app from</p>
  <pre><code>docker-compose up
  </code></pre>
  <p>Any suggestions to fix the error and config?
  Please advise with some code example
  Thanks in advance</p>