i can’t get postcss-url to work. Postcss copies the “processed” files correctly to the new directory, but it seems postcss-url isn’t working, ignores the config or is misconfigured.
Installed are
- [email protected]
- [email protected]
- [email protected]
The post.css.config.js is in the root-directory where the package.json is also located:
module.exports = {
plugins:[
require('postcss-url')({
url: ({ url }) => {
if (url.includes('./')) {
return url.replace('./', 'http://localhost/');
}
return url;
},
})
]
}
I try to run with npm "build:css": "postcss dev/*.css -d post/css"
, and the files were copied but not processed, so the folder structure should be correct.
Please give me a hint or a example to resolve my failure.
I tried several configurations from the inet, asked ChatGPT.