-
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Just had a nasty issue that took .. a few hours of my life .. using .sync without anything passed, didn't realize an empty array was at least expected.
const plugin = require("tailwindcss/plugin");
const postcssJs = require("postcss-js");
const styles = require("../dist/styles");
module.exports = plugin(function ({ addComponents }) {
let postcssJsProcess;
postcssJsProcess = postcssJs.sync(); // ... []
result = postcssJsProcess(styles);
addComponents(result);
});Any way to clarify the Readme a bit to add an example or two for .sync?
Metadata
Metadata
Assignees
Labels
No labels