Skip to content

Does not work with webpack-dev-server #19

Closed
@jefvlamings

Description

@jefvlamings

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions