Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
572 views
in Technique[技术] by (71.8m points)

vscode 中,如何设置使import vue模块和js等文件的时候,能出现路径提示

如题所示,以下是我按照网上教程配置的,结果依然不能使用,或者只有部分有效
方法一 path-intellisense(本人失败):
image.png
image.png
image.png
image.png

方法二 jsconfig.json(半失败)
配置如下
image.png
image.png

结果如下
image.png
image.png

百度了好久还是一头雾水,要么就是翻来覆去同样的文章,请问这种是哪里出错了,麻烦大佬指点一下


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

配置path-intellisensejsconfig.json只是在本地开发的时候编辑器的提示用啊。
你要在打包的时候能识别,需要配置打包配置文件的alias


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...