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

windows上各种不行 #46

Open
bibiuc opened this issue Oct 13, 2018 · 3 comments
Open

windows上各种不行 #46

bibiuc opened this issue Oct 13, 2018 · 3 comments

Comments

@bibiuc
Copy link

bibiuc commented Oct 13, 2018

image

@bibiuc
Copy link
Author

bibiuc commented Oct 13, 2018

应该是判断分隔符的时候用了sysPath.sep 写happypack/loader的时候用了/ 所以。。。('/'!='\')所以加了-loader

@bibiuc
Copy link
Author

bibiuc commented Oct 13, 2018

修复之前临时用这个处理了

 modifyWebpackConfig: function(baseConfig) {
      baseConfig.module.loaders.forEach(function(item) {
        if (item.loader == 'happypack/loader') {
          item.loader = 'happypack/loader'.split('/').join(sysPath.sep);
        }
      });
      return baseConfig;
}

@honchy
Copy link
Member

honchy commented Oct 18, 2018

@bibiuc 感谢,我尽快修复

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