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

请问是如何配置可以省略后缀? #34

Closed
lichunqiang opened this issue Mar 16, 2016 · 1 comment
Closed

请问是如何配置可以省略后缀? #34

lichunqiang opened this issue Mar 16, 2016 · 1 comment

Comments

@lichunqiang
Copy link
Collaborator

我现在遇到一个问题:

import App from './App'

提示找不到:

Module not found: Error: Cannot resolve 'file' or 'directory' ./App in xxxx

而使用·./App.vue 就没问题

我看你的项目中都是省略了后缀的。

webpack已经配置了 extensions: ['', '.js', '.vue']

仔细比对了下webpack的配置,目前看不出有啥差别,望指教。

@lichunqiang
Copy link
Collaborator Author

额,原来是配置错了

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

No branches or pull requests

1 participant