waysact/webpack-subresource-integrity

Build Fails With HtmlWebpackPlugin

maurice-does-software opened this issue · 1 comments

Using:
webpack 5.75.0
html-webpack-plugin 5.5.0
webpack-subresource-integrity 5.1.0
When I run webpack I get this error for every js entry:

ERROR in   Error: ENOENT: no such file or directory, open '/home/maurice/my-project/public/assets/dep-32ce720567a58c1a4e4f.js'
  
  - node:fs:585 Object.openSync
    node:fs:585:3
  
  - node:fs:453 Object.readFileSync
    node:fs:453:35
  
  - plugin.js:220 Plugin.processTag
    [my-project]/[webpack-subresource-integrity]/plugin.js:220:78
  
  - plugin.js:261 
    [my-project]/[webpack-subresource-integrity]/plugin.js:261:40
  
  - Array.forEach
  
  - plugin.js:261 Plugin.handleHwpBodyTags
    [my-project]/[webpack-subresource-integrity]/plugin.js:261:18
  
  - index.js:109 
    [my-project]/[webpack-subresource-integrity]/index.js:109:28
  
  
  - new Promise

I think this plugin is trying to read the content before they've been output to the filesystem.

It's probably something caused by a third plugin interfering. If you could create a test repository showing the problem I'm happy to take a quick look.