Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: normalize image source #514

Merged
merged 2 commits into from
Feb 22, 2022
Merged

fix: normalize image source #514

merged 2 commits into from
Feb 22, 2022

Conversation

brc-dd
Copy link
Member

@brc-dd brc-dd commented Jan 31, 2022

fixes #450

@meteorlxy
Copy link
Member

meteorlxy commented Jun 15, 2022

I'm afraid it's not an ideal fix. Two problems:

  • The raw html <img> tag is not handled, then the behaviors of <img src="foo"> and ![](foo) are inconsistent.
  • It makes the vite.resolve.alias fail to work, because the plugin will prepend ./ to the alias.

@meteorlxy
Copy link
Member

IMO, the original behavior is consistent with vite + vue DX, so we might not need this plugin.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assets resolution inconsistency in Dev and Build modes
3 participants