tailwind-runtime-jit
Installation
yarn add --dev postcss tailwindcss tailwind-runtime-jit
# or
npm install --save-dev postcss tailwindcss tailwind-runtime-jit
Usage
Add this to your webpack config:
import TailwindJitPlugin from 'tailwind-runtime-jit/webpack';
// ...
entry: {
app: [
...process.env.NODE_ENV === 'development' ? [ './tailwind.config.js' ] : [], // +
'src/index.js',
],
},
// ...
plugins: [
// ...
...process.env.NODE_ENV === 'development' ? [ new TailwindJitPlugin ] : [], // +
],
// ...