cspplugin

1.0.1 • Public • Published

CSPPlugin

csp secure as a webpack plugin

how to use

1.first npm install CSPPlugin

2.then in webpack.config.js

const CSPPlugin = require('CSPPlugin');
//other code
plugins: [
        new CSPPlugin({
            'defualt-src': ['self', 'https://www.qq.com']
        })
    ]

---this plugin can only used in product env---

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i cspplugin

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

3.28 kB

Total Files

4

Last publish

Collaborators

  • stevenzwzhai