Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

when plugins has options,it can't work #30

Open
fsy0718 opened this issue Sep 29, 2018 · 1 comment
Open

when plugins has options,it can't work #30

fsy0718 opened this issue Sep 29, 2018 · 1 comment

Comments

@fsy0718
Copy link

fsy0718 commented Sep 29, 2018

  plugins: [
        postcssEach({
          plugins: {
            afterEach: ['postcss-at-rules-variables'],
            beforeEach: [postcss-custom-properties({
                importFrom: [
                   customProperties: {
                       '--test-color': red
                  }
               ])]
          }
        })
  ]

the errors:

[Error] Error: Use process(css).then(cb) to work with async plugins
@adamduncan
Copy link

I came across trying the plugin for the first time today too. Attempting to call postcss-custom-media before/afterEach.

Is there something we're doing wrong here, or something unsupported at the package level?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants