Skip to content

Commit 0e50370

Browse files
committed
Simplify webpack config
1 parent 793ba48 commit 0e50370

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

examples/counter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "ng-redux counter example",
55
"main": "index.js",
66
"scripts": {
7-
"start": "webpack && webpack-dev-server --content-base dist/ --hot"
7+
"start": "webpack-dev-server --content-base dist/ --inline"
88
},
99
"repository": {
1010
"type": "git",

examples/counter/webpack.config.js

+10-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
44

55
module.exports = {
66
entry: [
7-
'webpack/hot/dev-server',
87
'./index.js',
98
//Remove the following line to remove devTools
109
'./devTools.js'
@@ -19,17 +18,20 @@ module.exports = {
1918
template: './index.html',
2019
inject: 'body'
2120
}),
22-
new webpack.HotModuleReplacementPlugin(),
2321
new webpack.NoErrorsPlugin()
2422
],
25-
resolve: {
26-
extensions: ['', '.ts', '.webpack.js', '.web.js', '.js']
27-
},
2823
devtool: 'source-map',
2924
module: {
3025
loaders: [
31-
{test: /\.js$/, exclude: /node_modules/, loader: "babel-loader"},
32-
{ test: /\.html$/, loader: 'html' }
33-
]
26+
{
27+
test: /\.js$/,
28+
loader: "babel",
29+
exclude: /node_modules/
30+
},
31+
{
32+
test: /\.html$/,
33+
loader: 'html'
34+
}
35+
]
3436
}
3537
};

0 commit comments

Comments
 (0)