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

add webpack alias for vscode #33

Merged
merged 1 commit into from
Dec 24, 2018
Merged

add webpack alias for vscode #33

merged 1 commit into from
Dec 24, 2018

Conversation

musnow
Copy link
Contributor

@musnow musnow commented Dec 24, 2018

使vscode支持webpack alias
但是不支持vue文件省略后缀名方式的import

比如文件路径:./src/components/done/index.vue
不支持如下省略

import done from '@/components/done'
import done from '@/components/done/index'

可以使用

import done from '@/components/done/index.vue'

详见:vuejs/vetur#707

@sendya sendya merged commit 88d83e5 into vueComponent:master Dec 24, 2018
sendya added a commit that referenced this pull request Feb 24, 2019
add webpack alias for vscode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants