Prevent path rewriting in CSS

The CSS after running yarn build generates the full path, based on the publicPath property in /resources/assets/config.json. For example, it changes “…/fonts/[file]” to “/wp-content/themes/[theme]/dist/fonts/[file]”. Is there any way to prevent this, so that the original relative path is preserved?

I just want to confirm a few things first:

I am using Sass, and I have not made any changes to the webpack or PostCSS configs.

1 Like