From e7c113eb158a27284fa2fae67b9ab4c6d8ea5cce Mon Sep 17 00:00:00 2001 From: Kant Date: Wed, 17 May 2017 15:30:07 +0200 Subject: [PATCH] Webpack config typo (#2193) * Webpack config typo * Webpack config more typo --- packages/react-scripts/config/webpack.config.dev.js | 6 +++--- packages/react-scripts/config/webpack.config.prod.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/react-scripts/config/webpack.config.dev.js b/packages/react-scripts/config/webpack.config.dev.js index 3d198d28a34..540d54abf5c 100644 --- a/packages/react-scripts/config/webpack.config.dev.js +++ b/packages/react-scripts/config/webpack.config.dev.js @@ -146,10 +146,10 @@ module.exports = { include: paths.appSrc, }, // ** ADDING/UPDATING LOADERS ** - // The "url" loader handles all assets unless explicitly excluded. + // The "file" loader handles all assets unless explicitly excluded. // The `exclude` list *must* be updated with every change to loader extensions. // When adding a new loader, you must add its `test` - // as a new entry in the `exclude` list for "url" loader. + // as a new entry in the `exclude` list for "file" loader. // "file" loader makes sure those assets get served by WebpackDevServer. // When you `import` an asset, you get its (virtual) filename. @@ -233,7 +233,7 @@ module.exports = { ], }, // ** STOP ** Are you adding a new loader? - // Remember to add the new extension(s) to the "url" loader exclusion list. + // Remember to add the new extension(s) to the "file" loader exclusion list. ], }, plugins: [ diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index 9742e7ff50a..7df2af07baf 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -145,10 +145,10 @@ module.exports = { include: paths.appSrc, }, // ** ADDING/UPDATING LOADERS ** - // The "url" loader handles all assets unless explicitly excluded. + // The "file" loader handles all assets unless explicitly excluded. // The `exclude` list *must* be updated with every change to loader extensions. // When adding a new loader, you must add its `test` - // as a new entry in the `exclude` list in the "url" loader. + // as a new entry in the `exclude` list in the "file" loader. // "file" loader makes sure those assets end up in the `build` folder. // When you `import` an asset, you get its filename. @@ -243,7 +243,7 @@ module.exports = { // Note: this won't work without `new ExtractTextPlugin()` in `plugins`. }, // ** STOP ** Are you adding a new loader? - // Remember to add the new extension(s) to the "url" loader exclusion list. + // Remember to add the new extension(s) to the "file" loader exclusion list. ], }, plugins: [