mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
372 B
TypeScript
16 lines
372 B
TypeScript
import * as webpack from 'webpack';
|
|
import SriPlugin = require('webpack-subresource-integrity');
|
|
|
|
const config: webpack.Configuration = {
|
|
plugins: [
|
|
new SriPlugin(),
|
|
new SriPlugin({
|
|
hashFuncNames: ['sha256', 'sha384']
|
|
}),
|
|
new SriPlugin({
|
|
enabled: false,
|
|
hashFuncNames: ['sha256']
|
|
})
|
|
]
|
|
};
|