Skip to content

Commit

Permalink
feat(config): Added NamedModules plugin for better dev experience
Browse files Browse the repository at this point in the history
The development mode output from webpack now will contain the names of the modules
  • Loading branch information
Eduard Kyvenko committed Apr 14, 2017
1 parent 9d0cf34 commit ebed202
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/webpack.config.dev.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const autoprefixer = require('autoprefixer')
const HotModuleReplacementPlugin = require('webpack/lib/HotModuleReplacementPlugin')
const DefinePlugin = require('webpack/lib/DefinePlugin')
const NamedModulesPlugin = require('webpack/lib/NamedModulesPlugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const getClientEnvironment = require('./env')
const paths = require('../config/paths')
Expand Down Expand Up @@ -135,6 +136,8 @@ module.exports = {
favicon: paths.favicon
}),

new HotModuleReplacementPlugin()
new HotModuleReplacementPlugin(),

new NamedModulesPlugin()
]
}

0 comments on commit ebed202

Please sign in to comment.