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:
- Are you using Sass? (i.e.
.scss
files) - Have you made any modifications to the webpack config?
- Have you made any modifications to the PostCSS config?
I am using Sass, and I have not made any changes to the webpack or PostCSS configs.
1 Like