1.0.1 • Published 7 years ago

cspplugin v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

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

1.0.1

7 years ago

1.0.0

7 years ago