Skip to content

.sync API #72

@gplusdotgr

Description

@gplusdotgr

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions