You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: