diff --git a/lib/index.html b/lib/index.html
index 1e475df..d670b9d 100644
--- a/lib/index.html
+++ b/lib/index.html
@@ -1,11 +1,20 @@
-
-
-
- tooling
-
-
-
-
-
-
+
+
+
+
+ {%=o.htmlWebpackPlugin.options.title || 'Webpack App'%}
+ {% if (o.htmlWebpackPlugin.files.favicon) { %}
+
+ {% } %}
+ {% for (var css in o.htmlWebpackPlugin.files.css) { %}
+
+ {% } %}
+
+
+
+ {% for (var chunk in o.htmlWebpackPlugin.files.chunks) { %}
+
+ {% } %}
+
+
\ No newline at end of file
diff --git a/lib/webpack.config.js b/lib/webpack.config.js
index aba8867..bd4a760 100644
--- a/lib/webpack.config.js
+++ b/lib/webpack.config.js
@@ -2,7 +2,6 @@
const path = require('path')
const webpack = require('webpack')
-const localConfig = require(process.cwd() + '/package.json').tooling || {}
const pathExists = require('path-exists')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const BrowserSyncPlugin = require('browser-sync-webpack-plugin')
@@ -64,10 +63,12 @@ module.exports = function (type, options) {
presets: [require('babel-preset-es2015'), require('babel-preset-stage-0'), require('babel-preset-react')],
plugins: [require('babel-plugin-transform-runtime')]
},
- plugins: [
-
- ]
+ plugins: []
}
+ let localConfig = {}
+ if (pathExists.sync(process.cwd() + '/package.json')) {
+ localConfig = require(process.cwd() + '/package.json').tooling || {}
+ }
const index = localConfig.index || {}
if (type === 'build') {
config.output.filename = 'bundle.[chunkhash].js'
@@ -87,6 +88,7 @@ module.exports = function (type, options) {
}),
new HtmlWebpackPlugin(Object.assign({}, {
title: 'Tooling',
+ template: __dirname + '/index.html'
}, index)),
new ExtractTextPlugin('styles.[contenthash].css')
]
@@ -107,6 +109,7 @@ module.exports = function (type, options) {
}),
new HtmlWebpackPlugin(Object.assign({}, {
title: 'Tooling',
+ template: __dirname + '/index.html'
}, index)),
new ExtractTextPlugin('styles.[contenthash].css')
]
diff --git a/package.json b/package.json
index 93f906e..63ebeb1 100644
--- a/package.json
+++ b/package.json
@@ -55,10 +55,13 @@
"path-exists": "^2.1.0",
"postcss-loader": "^0.8.0",
"precss": "^1.3.0",
+ "react": "^0.14.5",
+ "react-dom": "^0.14.5",
"rucksack-css": "^0.8.5",
"style-loader": "^0.13.0",
"update-notifier": "^0.6.0",
"url-loader": "^0.5.7",
+ "vue": "^1.0.13",
"vue-hot-reload-api": "^1.2.2",
"vue-html-loader": "^1.0.0",
"vue-loader": "^7.5.0",