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
Adds jpg and jpeg file extensions to the webpack file loader
Testing steps
Create a project using the build tools
Add a jpg image into the src/static directory
Import into JS, e.g: import myImage from "@Static/my-image.jpg"
Run the build tools watch/build process
There should be no build errors
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)
Description
This PR adds
jpg
andjpeg
file extensions to the webpack file loader, so that we can import those image formats within for use within javascript.Change Log
jpg
andjpeg
file extensions to the webpack file loaderTesting steps
src/static
directoryimport myImage from "@Static/my-image.jpg"
Previous error: