inline-source-html-webpack-plugin
v1.0.0
Published
Inline assets into the generated HTML
Downloads
7
Readme
inline-source-html-webpack-plugin
Inline assets into the generated HTML by inline-source
Inline and compress tags that contain the inline attribute. Supports
<script>
,<link>
, and<img>
(including *.svg sources) tags by default, and is easily extensible to handle others.
Install
$ npm install --dev-save inline-source-html-webpack-plugin
Usage
import InlineSourceHtmlWebpackPlugin from 'inline-source-html-webpack-plugin'
// webpack config
module.exports = {
...
plugins: [
new HtmlWebpackPlugin()
new InlineSourceHtmlWebpackPlugin([<option>])
]
}
Option
Refer to the inline-source
License
MIT