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

Dependencies (0)

    Dev Dependencies (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