Skip to content

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 gaearon committed Jun 6, 2017
1 parent b264b8d commit c78c1fa
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 c78c1fa

Please sign in to comment.