http-upgrade-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

http-upgrade-plugin

http协议请求升级https协议请求

Install

npm install http-upgrade-plugin --save dev

Methods

HttpUpgrade({template:"index.html", isUpgrade:true}) // template模版资源名称 isUpgrade是否将http协议升级成https

Usage

const HttpUpgrade = require('http-upgrade-plugin')
...
    plugins: [
        ...
        new HttpUpgrade({template:"index.html", isUpgrade:process.env.XXX==='production'})
        ...
    ]
...

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i http-upgrade-plugin

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.31 kB

Total Files

6

Last publish

Collaborators

  • kaiynn