Open derekstavis opened 7 years ago
Hi @derekstavis
maybe you need to use custom
function
require('postcss-url')([
{ url: 'rebase' }
// postprocessing with 'custom' function
{ url: (asset) => `./${asset.url}`, multi: true }
])
I added flag multi
especially for corner cases
Sorry, documentation is not clearly
This adds a
relative
option allowing to prepend./
in front of the rebased URL.This is needed to rebase paths after
postcss-import
and keep the imports relative to the rootstyle.css
.This allows the following structure to work:
Using postcss with the following configuration: