@jpweeks/html-webpack-inline-plugin
v0.1.1
Published
[![NPM Version](https://img.shields.io/npm/v/html-webpack-inline-plugin.svg?style=flat-square)](https://www.npmjs.com/package/html-webpack-inline-plugin)
Downloads
3
Readme
html-webpack-inline-plugin
Inline all
<script>
,<link>
and<img>
tags that contain theinline
attribute with inline-source.
Installation
npm install --save-dev html-webpack-inline-plugin
Basic Usage
Require the plugin in your webpack config:
var HtmlWebpackInlinePlugin = require('html-webpack-inline-plugin');
Add the plugin to your webpack config as follows:
plugins: [
new HtmlWebpackPlugin(),
new HtmlWebpackInlinePlugin()
]
Add the tag to your html template as follows:
<!DOCTYPE html>
<html>
<head>
<script inline src="web_modules/lib/lib.js"></script>
</head>
<body>
</body>
</html>
Inspired by
License
This project is licensed under MIT.