Upgrade webpack to version to 2. This provides better support for file change detection and hot module reloading on Linux. (#362)

This commit is contained in:
Jacob Beard 2017-11-11 14:02:04 -05:00 committed by Mihail Diordiev
parent 687a855192
commit 6a46404ba7
2 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@
"redux-devtools": "^3.0.1", "redux-devtools": "^3.0.1",
"redux-devtools-dock-monitor": "^1.0.1", "redux-devtools-dock-monitor": "^1.0.1",
"redux-devtools-log-monitor": "^1.0.2", "redux-devtools-log-monitor": "^1.0.2",
"webpack": "^1.9.11", "webpack": "^2.5.1",
"webpack-dev-server": "^1.9.0" "webpack-dev-server": "^2.4.5"
} }
} }

View File

@ -24,17 +24,17 @@ module.exports = {
} }
}, },
resolveLoader: { resolveLoader: {
'fallback': path.join(__dirname, 'node_modules') 'modules': [path.join(__dirname, 'node_modules')]
}, },
module: { module: {
loaders: [{ loaders: [{
test: /\.js$/, test: /\.js$/,
loaders: ['babel'], loaders: ['babel-loader'],
exclude: /node_modules/, exclude: /node_modules/,
include: path.join(__dirname, 'src') include: path.join(__dirname, 'src')
}, { }, {
test: /\.js$/, test: /\.js$/,
loaders: ['babel'], loaders: ['babel-loader'],
include: path.join(__dirname, '..', '..', 'src') include: path.join(__dirname, '..', '..', 'src')
}] }]
} }