MCPcopy
hub / github.com/HenrikJoreteg/hjs-webpack / load

Function load

lib/installed-hot-loaders.js:4–16  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

2var path = require('path')
3
4function 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
18module.exports = {
19 load: load

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected