Skip to content

pantojs/panto-transformer-integrity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

panto-transformer-integrity

NPM version Downloads Build Status Dependency status Dev Dependency status Coverage Status

Integrity transformer for panto.

panto.loadTransformer('integrity');

panto.pick('**/*.{css,js}').read().integrity({
    algorithm: 'sha256',
    ignoreError: true
});

options

  • algorithm: string, could be one of "sha256","sha384","sha512", depends on the openssl installed
  • ignoreError: boolean, if fail when error