@@ -112,20 +112,14 @@ module.exports = {
112
112
}
113
113
] ,
114
114
loaders : [
115
- // Default loader: load all assets that are not handled
116
- // by other loaders with the url loader.
117
- // Note: This list needs to be updated with every change of extensions
118
- // the other loaders match.
119
- // E.g., when adding a loader for a new supported file extension,
120
- // we need to add the supported extension to this loader too.
121
- // Add one new line in `exclude` for each loader.
122
- //
123
- // "file" loader makes sure those assets get served by WebpackDevServer.
124
- // When you `import` an asset, you get its (virtual) filename.
125
- // In production, they would get copied to the `build` folder.
126
- // "url" loader works like "file" loader except that it embeds assets
127
- // smaller than specified limit in bytes as data URLs to avoid requests.
128
- // A missing `test` is equivalent to a match.
115
+ // ** ADDING/UPDATING LOADERS **
116
+ // The "url" loader handles all assets unless explicitly excluded.
117
+ // The `exclude` list *must* be updated with every change to loader extensions.
118
+ // When adding a new loader, you must add its `test`
119
+ // as a new entry in the `exclude` list for "url" loader.
120
+
121
+ // "url" loader embeds assets smaller than specified size as data URLs to avoid requests.
122
+ // Otherwise, it acts like the "file" loader.
129
123
{
130
124
exclude : [
131
125
/ \. h t m l $ / ,
@@ -179,6 +173,8 @@ module.exports = {
179
173
name : 'static/media/[name].[hash:8].[ext]'
180
174
}
181
175
}
176
+ // ** STOP ** Are you adding a new loader?
177
+ // Remember to add the new extension(s) to the "url" loader exclusion list.
182
178
]
183
179
} ,
184
180
// @remove -on-eject-begin
0 commit comments