A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/theGC/html-webpack-inline-svg-plugin/issues/19 below:

Does not work with webpack-dev-server · Issue #19 · theGC/html-webpack-inline-svg-plugin · GitHub

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