Commit 262a247
authored
Update the webpack config to fully ignore images
Previously, while images would be loaded via the null-loader, if Webpack couldn't find the images it would still crash. This meant you had to use the real path to the images from your html file, like: `<img src="../../assets/img/test.png>`, which is not really going to work once deployed.
Instead I've updated the html-loader to not even try to load images. By default it tries to require any images it comes across, but by setting `attrs=false` it will no longer do that.1 parent e36d6b5 commit 262a247
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments