html-skeleton-webpack-plugin

2.1.0 • Public • Published

html-skeleton-webpack-plugin

This webpack plugin is designed for generate the skeleton screen for page.

Install

npm i -D html-skeleton-webpack-plugin

Usage

In your webpack configuration (webpack.config.js):

const HtmlSkeletonWebpackPlugin = require('html-skeleton-webpack-plugin');

module.exports = {
    //...
    plugins: [
        new HtmlSkeletonWebpackPlugin()
    ]
}

NOTE: You should add it after html-webpack-plugin

skeleton screenshot

Options

header

boolean. Default value is true.
Whether to show the header.

left

boolean. Default value is true.
Whether to show the left.

processHtml

string or RegExp or function. Default value is /<!--\s*skeleton\s*-->/.
<!-- skeleton --> in html template will be replaced with skeleton screen code by default.

css

string or function.
Insert skeleton screen style. The default style will not be added when passing in this value.

Package Sidebar

Install

npm i html-skeleton-webpack-plugin

Weekly Downloads

1

Version

2.1.0

License

MIT

Unpacked Size

10.2 kB

Total Files

5

Last publish

Collaborators

  • kingller