@@ -126,20 +126,14 @@ module.exports = function(publicPath) {
126
126
}
127
127
] ,
128
128
loaders : [
129
- // Default loader: load all assets that are not handled
130
- // by other loaders with the url loader.
131
- // Note: This list needs to be updated with every change of extensions
132
- // the other loaders match.
133
- // E.g., when adding a loader for a new supported file extension,
134
- // we need to add the supported extension to this loader too.
135
- // Add one new line in `exclude` for each loader.
136
- //
137
- // "file" loader makes sure those assets get served by WebpackDevServer.
138
- // When you `import` an asset, you get its (virtual) filename.
139
- // In production, they would get copied to the `build` folder.
140
- // "url" loader works like "file" loader except that it embeds assets
141
- // smaller than specified limit in bytes as data URLs to avoid requests.
142
- // A missing `test` is equivalent to a match.
129
+ // ** ADDING/UPDATING LOADERS **
130
+ // The "url" loader handles all assets unless explicitly excluded.
131
+ // The `exclude` list *must* be updated with every change to loader extensions.
132
+ // When adding a new loader, you must add its `test`
133
+ // as a new entry in the `exclude` list for "url" loader.
134
+
135
+ // "url" loader embeds assets smaller than specified size as data URLs to avoid requests.
136
+ // Otherwise, it acts like the "file" loader.
143
137
{
144
138
exclude : [
145
139
/ \. h t m l $ / ,
@@ -206,6 +200,8 @@ module.exports = function(publicPath) {
206
200
name : 'static/media/[name].[hash:8].[ext]'
207
201
}
208
202
}
203
+ // ** STOP ** Are you adding a new loader?
204
+ // Remember to add the new extension(s) to the "url" loader exclusion list.
209
205
]
210
206
} ,
211
207
// @remove -on-eject-begin
0 commit comments