Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Commit

Permalink
Added NamedModulesPlugin in webpack.config.dev.js (#2458)
Browse files Browse the repository at this point in the history
* Added NamedModulesPlugin in webpack.config.dev.js

* Update webpack.config.dev.js
  • Loading branch information
Zaccc123 authored and wmonk committed Aug 7, 2017
1 parent ad5b884 commit e9f1371
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-scripts/config/webpack.config.dev.js
Expand Up @@ -237,6 +237,8 @@ module.exports = {
inject: true,
template: paths.appHtml,
}),
// Add module names to factory functions so they appear in browser profiler.
new webpack.NamedModulesPlugin(),
// Makes some environment variables available to the JS code, for example:
// if (process.env.NODE_ENV === 'development') { ... }. See `./env.js`.
new webpack.DefinePlugin(env.stringified),
Expand Down

0 comments on commit e9f1371

Please sign in to comment.