DefinitelyTyped/types/webpack-cdn-inject/index.d.ts
Piotr Błażejewicz (Peter Blazejewicz) dd3765e494
feat(webpack-cdn-inject): new type definition (#45530)
Type definition for small webpack plugin:
- definition file
- tests

https://github.com/drolsen/webpack-cdn-inject#readme

Thanks!
2020-06-21 01:10:12 -07:00

29 lines
851 B
TypeScript

// Type definitions for webpack-cdn-inject 1.0
// Project: https://github.com/drolsen/webpack-cdn-inject#readme
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Plugin } from 'webpack';
/**
* Plugin to inject CDN assets into HTML documents.
*/
declare namespace WebpackCDNInject {
interface Options {
/**
* Defines urls to be added to document head (tag type is defined by url's file extension).
*/
head?: string[];
/**
* Defines urls to be added to document body (tag type is defined by url's file extension).
*/
body?: string[];
}
}
declare class WebpackCDNInject extends Plugin {
constructor(options?: WebpackCDNInject.Options);
}
export = WebpackCDNInject;