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

不支持绝对定位的写法 #14

Closed
YangTingWei opened this issue Jul 2, 2018 · 2 comments
Closed

不支持绝对定位的写法 #14

YangTingWei opened this issue Jul 2, 2018 · 2 comments

Comments

@YangTingWei
Copy link

YangTingWei commented Jul 2, 2018

组件,或者模板是不是不能支持绝对定位的写法,能不能改成同时支持呢?

@Cap32
Copy link
Owner

Cap32 commented Jul 2, 2018

不支持,原因是 Webpack 不支持绝对路径写法

@Cap32 Cap32 closed this as completed Jul 2, 2018
@Cap32
Copy link
Owner

Cap32 commented Jul 2, 2018

可以在 webpack 上配置 resolve.modules,然后把 '/my/path' 改为 'my/path' 即可实现类似效果

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

2 participants