Feat: Add react-hot-loader

Combine webpack and browser-sync on one port
This commit is contained in:
Berkeley Martinez
2016-09-27 10:57:56 -07:00
parent d3f8757e92
commit a6f9e95ed8
7 changed files with 58 additions and 83 deletions

View File

@@ -23,7 +23,7 @@ module.exports = {
'bundle-[name].js' :
'bundle-[name]-[chunkhash].js',
path: path.join(__dirname, '/public/js'),
publicPath: __DEV__ ? 'http://localhost:2999/js' : '/js'
publicPath: '/js'
},
module: {
loaders: [
@@ -33,9 +33,7 @@ module.exports = {
path.join(__dirname, 'client/'),
path.join(__dirname, 'common/')
],
loaders: [
'babel-loader'
]
loaders: __DEV__ ? ['react-hot', 'babel'] : [ 'babel' ]
},
{
test: /\.json$/,