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

How to use postcss-url plugin? #53

Open
xingyibiao opened this issue Sep 10, 2020 · 2 comments
Open

How to use postcss-url plugin? #53

xingyibiao opened this issue Sep 10, 2020 · 2 comments

Comments

@xingyibiao
Copy link

xingyibiao commented Sep 10, 2020

I want to use postcss-url plugin. but not work for me. It`s my config,

scss({
      processor: css => postcss([px2rem({ remUnit: 75, remPrecision: 5 }), url({ url: 'copy', assetsPath: './assets' })]),
      output: 'dist/bundle.css',
    }),
@xingyibiao
Copy link
Author

It seams like this plugin always set postcss from is undefinded. and I want to write a postcss plugin to copy file, but not work

@thgh
Copy link
Owner

thgh commented Feb 19, 2021

Have you tried to set from? What could this plugin do better?

    scss({
      processor: css => postcss([px2rem({ remUnit: 75, remPrecision: 5 }), url({ url: 'copy', assetsPath: './assets' })]),
      output: 'dist/bundle.css',
      from: "somefile"
    }),

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

2 participants