From b55c16e9b9dbe2dfe52419e98d524d7b7faaf9f9 Mon Sep 17 00:00:00 2001 From: Velenir Date: Sat, 31 Dec 2016 12:55:58 +0300 Subject: [PATCH] docs(readme): Clarification, rewording --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 90c679f..3e5ed57 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ npm install pug pug-loader html-webpack-plugin html-webpack-template-pug --save- ## Basic Usage -Required parameters, to be passed to `new HtmlWebpackPlugin({})`: +Required parameters, to be passed to `new HtmlWebpackPlugin(options)` as properties on `options`: - `inject: false` -- Disables resource injection by **html-webpack-plugin** - `template`: provided `layout.pug` or a custom `*.pug` file. @@ -392,8 +392,8 @@ To clarify usage of different parameters in `inlineCSS`, `injectCSS`, `inlineJS` +inlineCSS(["style1.css", "style2.css"]) //- inlines style1.css and style2.css -+inlineCSS(["style1.css", "!style2.css"]) -//- inlines style1.css but not style2.css ++inlineCSS([/\.css$/, "!style2.css"]) +//- inlines all /\.css$/ matches except for style2.css +inlineCSS(["!style1.css", "!style2.css"]) //- inlines all resources from htmlWebpackPlugin.files.css except for style1.css and style2.css