Skip to content

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

@sonofmagic

Description

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

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

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

Originally posted by @sonofmagic in #116 (comment)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions