This plugin assumes that images are written to disk. When running webpack-dev-server the assets are not copied to the destination folder and therefor will not be able to be read.
The fs.readFile
throws an error because it's not finding the image in the destination folder:
{ Error: ENOENT: no such file or directory, open '.../dist/img/menu-1d840d305cccb544781eccb64422f684.svg'
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '.../dist/img/menu-1d840d305cccb544781eccb64422f684.svg' }
Please note that the plugin is working fine when just building with webpack.
Ansimorph, tr1s, GeassCoder, binkoni, ActionScripted and 4 more
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4