Commit 0173d91
refactor: group asset loading webpack config together
The existing webpack config customizes the filenames of any assets we import
which have not been inlined using the `assetModuleFilename`.
This config option is defined at the global level, however it only applies to
assets that are processed by the Asset module definition.
Rather than configuring this globally, I have opted for defining it within the
Asset module definition (nested under the `generator` option) as that makes it
clearer that this option is only relevant for those assets thus making it easier
for future developers to understand and make changes in the future, especially
for those who are less familiar with the intricacies of webpack config.
[1] https://webpack.js.org/guides/asset-modules/
Co-Authored-By: Chris Lowis <[email protected]>1 parent c5e6373 commit 0173d91
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
0 commit comments