(config)
| 2 | var path = require('path') |
| 3 | |
| 4 | function load (config) { |
| 5 | // add hot loading clientside code |
| 6 | config.entry.unshift( |
| 7 | // Full path to webpack-hot-middleware so it works in npm2 and npm3 |
| 8 | path.join(path.dirname(require.resolve('webpack-hot-middleware')), 'client') |
| 9 | ) |
| 10 | |
| 11 | // add dev plugins |
| 12 | config.plugins = config.plugins.concat([ |
| 13 | new webpack.HotModuleReplacementPlugin(), |
| 14 | new webpack.NoEmitOnErrorsPlugin() |
| 15 | ]) |
| 16 | } |
| 17 | |
| 18 | module.exports = { |
| 19 | load: load |
nothing calls this directly
no outgoing calls
no test coverage detected