diff --git a/README.md b/README.md index 33d184f..b89b76f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -html-webpack-plugin +HTML Webpack Plugin =================== This is a [webpack](http://webpack.github.io/) plugin that simplifies creation of HTML files to serve your @@ -22,20 +22,18 @@ bundles in the body. For example, this webpack config... ```javascript -{ - entry: { - util: 'util.js', - app: 'index.js' - }, +var HtmlWebpackPlugin = require('html-webpack-plugin') +var webpackConfig = { + entry: 'index.js', output: { path: 'dist', - filename: '[name]_bundle.js' + filename: 'index_bundle.js' }, plugins: [new HtmlWebpackPlugin()] } ``` -... generates a file `dist/index.html` containing the following: +generates a file `dist/index.html` containing the following: ```html @@ -44,8 +42,38 @@ For example, this webpack config...