Skip to content

Conversation

@mbehzad
Copy link
Contributor

@mbehzad mbehzad commented Sep 29, 2025

== Description ==
Instead of any asset reference in scss (url() for images, fonts etc) being resolved relative to the entry file. It will be resolved relative to the file itself. This allows sharing the same scss file between different entries / bundles. and improves IDE support (e.g. autocompletation, goto definition). (See https://www.npmjs.com/package/resolve-url-loader )

BREAKING CHANGE: Any relative paths being used in the scss file (e.g. background-image: url(./path/to/sceleton.svg)) which was previously relative to the entry file (e.g. index.scss) needs to be replaced with the relative path from the scss with the rule referencing the asset.

== Closes issue(s) ==

== Changes ==

== Affected Packages ==
pv-scripts

…with the reference itself

instead of any asset reference in scss (url() for images, fonts etc) being resolved relative to the
entry file. This allows sharing the same file between different entries / bundles. and improves IDE
support (e.g. autocompletation, goto definition). (See
https://www.npmjs.com/package/resolve-url-loader )

BREAKING CHANGE: Any relative paths being used in the scss file (e.g. `background-image:
url(./path/to/sceleton.svg)`) which was previously relative to the entry file (e.g. index.scss)
needs to be replaced with the relative path from the scss with the rule referencing the asset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants