html-webpack-inline-assets-plugin

0.0.2 • Public • Published

html-webpack-inline-assets-plugin

Based on html-webpack-plugin inline your resources

Improve the effect of html-webpack-plugin, the resources inline to html

Installation

$ npm install --save-dev html-webpack-inline-assets-plugin

Basic Usage

var HtmlWebpackInlineAssetsPlugin = require('html-webpack-inline-assets-plugin');

We need to pass the parameters head or body to tell us which resources are needed inline to html, the parameters you need to pass a regular expression

plugins: [
  new HtmlWebpackPlugin(),
  new HtmlWebpackInlineAssetsPlugin({
    head: '.(js|css)$',
    body: '.(js|css)$',
  })
]

other

This plugin is modified from html-webpack-inline-source-plugin

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    6
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    6
  • 0.0.1
    2

Package Sidebar

Install

npm i html-webpack-inline-assets-plugin

Weekly Downloads

5

Version

0.0.2

License

MIT

Last publish

Collaborators

  • dahong