bigbite / build-tools

MIT License
6 stars 1 forks source link

Add jpg support #123

Closed g-elwell closed 2 months ago

g-elwell commented 2 months ago

Description

This PR adds jpg and jpeg file extensions to the webpack file loader, so that we can import those image formats within for use within javascript.

Change Log

Testing steps

Previous error:

ERROR in ./src/static/images/nickname-generator/avatar-3.jpg 1:0
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)