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 change the input path? #58

Open
ericmorand opened this issue Jul 17, 2018 · 1 comment
Open

How to change the input path? #58

ericmorand opened this issue Jul 17, 2018 · 1 comment

Comments

@ericmorand
Copy link

My CSS is being built in an intermediate folder and postcss-copy resolves the name of the assets by using the following call:

path.dirname(decl.source.input.file)

The input file being into the "build" folder and not into the src folder, postcss-copy is unable to find the assets and end up doing nothing.

Version 6 of the module was doing this:

opts.inputPath(decl);

It gave us the chance to pass a custom inputPath function to postcss-copy to tell hom "OK, my assets have to be resolved from this folder instead of relatively to the CSS file".

How can it be done with postcss-copy@7? Every serious build-tool is not building the CSS into the same place as the SASS sources, so without such a way to override the input path, postcss-copy is useless.

@niksy
Copy link

niksy commented Jul 20, 2018

I have the same problem. Removing inputPath and relativePath seem like a major drawback. How can we achieve previous functionality?

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