Disabled webpack HMR. See #2
This commit is contained in:
parent
162f722ef9
commit
6c0878487f
3 changed files with 6 additions and 10 deletions
|
|
@ -5,7 +5,6 @@ module.exports = {
|
|||
devtool: 'eval',
|
||||
entry: [
|
||||
'webpack-dev-server/client?http://localhost:3000',
|
||||
'webpack/hot/only-dev-server',
|
||||
'./src/index'
|
||||
],
|
||||
output: {
|
||||
|
|
@ -13,17 +12,13 @@ module.exports = {
|
|||
filename: 'bundle.js',
|
||||
publicPath: '/static/'
|
||||
},
|
||||
plugins: [
|
||||
new webpack.HotModuleReplacementPlugin(),
|
||||
new webpack.NoErrorsPlugin()
|
||||
],
|
||||
resolve: {
|
||||
extensions: ['', '.js', '.ts', '.tsx']
|
||||
},
|
||||
module: {
|
||||
loaders: [{
|
||||
test: /\.tsx?$/,
|
||||
loaders: ['react-hot', 'ts-loader'],
|
||||
loaders: ['ts-loader'],
|
||||
include: path.join(__dirname, 'src')
|
||||
}]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue