jonathanKingston / ember-cli-sri

Generation of SRI hashes for ember
MIT License
48 stars 15 forks source link

Possibility to exclude a file from having integrity #28

Open frunjik opened 7 years ago

frunjik commented 7 years ago

Is it possible to exclude a file, so the it ends up without the integrity attribute ? I have an external config.js file, that i want to be able to edit after deploy ...

jonathansamines commented 7 years ago

I was wondering the same, I tried to place that script outside the {{content-for}} sections, but stills gets its integrity attribute ..

philemokpare commented 7 years ago

You can exclude the files using:

SRI: {
 paranoiaCheck: true,
}
fingerprint: {
  exclude: ['filename','anotherfile']
}