Skip to content

How to change the input path? #58

@ericmorand

Description

@ericmorand

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions