0.1.0 • Published 5 years ago

webpack-extract-subresource-integrity v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

webpack-extract-subresource-integrity

This plugin work with webpack-subresource-integrity, it extract all integrity infomation into a single file.

config example

const SriPlugin = require("webpack-subresource-integrity");
const ExtractSriPlugin = require("webpack-extract-subresource-integrity");

const webpackConfig = {
  // ...
  plugins: [
    new SriPlugin({
      hashFuncNames: ["sha256", "sha384"]
    }),
    new ExtractSriPlugin({
      name: "subresource-integrity.json"
      extensions: ['js', 'css']
    })
  ]
};

params

paramtypeusagedefault value
namestringset the name of the extracted filesubresource-integrity.json
extensionsstring[]what kinds of files to extract integrity for['js', 'css']
appendPublicPathbooleanwhether to append webpackConfig.output.publicPath(if exist) to the file names in the extracted filetrue
0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago