weapp-tailwindcss icon indicating copy to clipboard operation
weapp-tailwindcss copied to clipboard

原生 mina plugin 路径别名支持

Open sonofmagic opened this issue 2 years ago • 0 comments

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

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

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

Originally posted by @sonofmagic in https://github.com/sonofmagic/weapp-tailwindcss/issues/116#issuecomment-1308176446

sonofmagic avatar Jun 08 '23 03:06 sonofmagic