Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to result of postcss #119

Open
ghost opened this issue May 2, 2018 · 0 comments
Open

Access to result of postcss #119

ghost opened this issue May 2, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented May 2, 2018

is there possibility to access to result of postcss plugins?

I'm using postcss-import plugin and need to watch(watchify) every file imported by @import call in css.

Example below, but with css-modulesify don't know how to do it.

   Postcss().use(p).process(data).then((result) => {
      for ( const msg of result.messages ) {
        if ( msg.type != "dependency" ) continue;
        b.emit("file", msg.file); //watchify
      }
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants