Added NamedModulesPlugin in webpack.config.dev.js (#2458)

* Added NamedModulesPlugin in webpack.config.dev.js

* Update webpack.config.dev.js
This commit is contained in:
Zac Kwan
2017-06-06 21:06:39 +08:00
committed by Dan Abramov
parent b264b8de33
commit c78c1fae62

View File

@@ -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),