You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to reference tailwind configs in JS, we need a slight refactor to our tailwind.config.js file:
Turning const corePlugins = require('./theme/config/corePlugins'); into import corePlugins from './theme/config/corePlugins'; and then within each referenced file, adding export default corePlugins (or w/e the file is).
In order to reference tailwind configs in JS, we need a slight refactor to our tailwind.config.js file:
Turning
const corePlugins = require('./theme/config/corePlugins');
intoimport corePlugins from './theme/config/corePlugins';
and then within each referenced file, addingexport default corePlugins
(or w/e the file is).This is relatively easy to do, and i've done it here on merus for reference
More here: https://stackoverflow.com/questions/70983798/how-to-use-tailwindcsss-resolve-config-with-typescript
The text was updated successfully, but these errors were encountered: