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

原生 mina plugin 路径别名支持 #196

Open
sonofmagic opened this issue Jun 8, 2023 · 0 comments
Open

原生 mina plugin 路径别名支持 #196

sonofmagic opened this issue Jun 8, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@sonofmagic
Copy link
Owner

          这个我需要研究一下,因为目前 mina plugin 对待 json 文件的处理方式,是利用 copy plugin 直接把 .json 文件,拷贝到 dist 文件目录。

你想要的结果,实际是,.json 也加入 webpack 的 asset 里面,然后根据 alias 的配置,把 @/xxx , ~/xxx 这种前置的 path 给解析(resolve) 一下,输出成指定的相对格式。

这个到时候有进展,我会更新我的 demo 和这个 issue 的

Originally posted by @sonofmagic in #116 (comment)

@sonofmagic sonofmagic self-assigned this Jun 8, 2023
@sonofmagic sonofmagic added the enhancement New feature or request label Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant