html-webpack-plugin-webpack-dev-server

1.2.1 • Public • Published

what it do?

This plugin is based on html-webpack-plugin and webpack-dev-server. It mainly implements multi-entry files. When the import file changes, webpack-dev-server automatically refreshes the browser. Multi-entry files are mainly key-value eq:

{
    "entrn1":"xx/xx/xx1.js",
    "entrn2":"xx/xx/xx2.js"
}

how use?

const webpackAutoRefreshPlugin = require('html-webpack-plugin-webpack-dev-server');
{
    plugins:[
        ...
        new webpackAutoRefreshPlugin({ 
            port: '8080',   //Local development port	(necessarily)
            ip:'127.0.0.1'  //Local development ip 		(Optional) 	if you set val null,The plugins will auto get your local development ip address
         })
    ]
}

Package Sidebar

Install

npm i html-webpack-plugin-webpack-dev-server

Weekly Downloads

0

Version

1.2.1

License

ISC

Unpacked Size

2.48 kB

Total Files

3

Last publish

Collaborators

  • qiangqiang