webpack-subresource-integrity: Broken on Windows

We integrated this plugin into Create React App (https://github.com/facebookincubator/create-react-app/issues/1202), and the build breaks on Windows:

To reproduce:

npm i -g create-react-app
create-react-app myapp --scripts-version 0.8.2

cd myapp
npm run build

This happens on Windows because the generated compilation assets key contains Windows path separators but Webpack expected a normalized one.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (2 by maintainers)

Commits related to this issue

Most upvoted comments

Wow cool now it is part of create react app? 😃

Yea!

Ah, good to know, but I’d call this a workaround and not a fix. I’m aiming to release a fix for this soon and you’ll be able to go back to using path.join.