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

Using PostStylus in a node script #39

Open
d0t15t opened this issue Mar 2, 2023 · 0 comments
Open

Using PostStylus in a node script #39

d0t15t opened this issue Mar 2, 2023 · 0 comments

Comments

@d0t15t
Copy link

d0t15t commented Mar 2, 2023

Hi, thanks for this plugin.

I'm trying to use poststylus in a node script, but none of the plugins are being applied. The following outputs the compiled stylus->css, but the postcss plugins are not working. What am i doing wrong?

    stylus(data)
      .use(poststylus([
        'autoprefixer',
        'cssnano',
      ]))
      .render((err, css) => {
        fs.writeFile(cssFullFilePath, css)
      })
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

1 participant