Skip to content

Commit

Permalink
Added NamedModulesPlugin in webpack.config.dev.js (facebook#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 romaindso committed Jul 10, 2017
1 parent 486d097 commit ae19c65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,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 ae19c65

Please sign in to comment.