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

webpack pulicPath不支持相对路径 #77

Open
WinfredWang opened this issue Sep 8, 2020 · 1 comment
Open

webpack pulicPath不支持相对路径 #77

WinfredWang opened this issue Sep 8, 2020 · 1 comment

Comments

@WinfredWang
Copy link

WinfredWang commented Sep 8, 2020

如下代码

https://github.com/easy-team/easywebpack/blob/master/utils/utils.js#L58

utils.normalizePublicPath = publicPath => {
  publicPath = `${publicPath.replace(/\/$/, '')}/`;
  if (!utils.isHttpOrHttps(publicPath) && !/^\//.test(publicPath)) {
    publicPath = `/${publicPath}`;
  }
  return publicPath;
};

上述代码中publicPath被强制设置成绝对路径,是否可以支持设置相对路径

@WinfredWang WinfredWang changed the title pulicPath不支持相对路径 webpack pulicPath不支持相对路径 Sep 8, 2020
@hubcarl
Copy link
Collaborator

hubcarl commented Sep 11, 2020

@WinfredWang not support relative 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