diff --git a/config.html b/config.html
new file mode 100644
index 0000000..71e725d
--- /dev/null
+++ b/config.html
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ React • TodoMVC • Config
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/config/webpack.common.js b/config/webpack.common.js
index 77d83fa..96355a8 100644
--- a/config/webpack.common.js
+++ b/config/webpack.common.js
@@ -6,6 +6,7 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: {
'app': './src/app.tsx',
+ 'config': './src/config.tsx',
'vendor': './src/vendor.ts'
},
@@ -35,7 +36,11 @@ module.exports = {
preLoaders: [
// All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
- { test: /\.js$/, loader: 'source-map-loader' }
+ {
+ test: /\.js$/,
+ loader: 'source-map-loader',
+ exclude: /node_modules/
+ }
]
},
@@ -47,6 +52,13 @@ module.exports = {
chunks: ['app', 'vendor']
}),
+ new HtmlWebpackPlugin({
+ title: 'Config • TodoMVC',
+ filename: 'config.html',
+ template: path.resolve('config.html'),
+ chunks: ['config', 'vendor']
+ }),
+
new ExtractTextPlugin('[name].css'),
new webpack.ProvidePlugin({
diff --git a/index.html b/index.html
index 3f653b8..3f35d11 100644
--- a/index.html
+++ b/index.html
@@ -17,6 +17,7 @@
+