UNPKG

@mrtc0/csp-html-webpack-plugin

Version:
16 lines (14 loc) 326 B
const HtmlWebpackPlugin = require('html-webpack-plugin'); const { CspHtmlWebpackPlugin } = require('../../'); module.exports = { webpack: { plugins: { add: [ new CspHtmlWebpackPlugin(HtmlWebpackPlugin, { "base-uri": [`'self'`], "object-src": [`'none'`], }) ] } } }