mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Type definition for small webpack plugin: - definition file - tests https://github.com/drolsen/webpack-cdn-inject#readme Thanks!
29 lines
851 B
TypeScript
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;
|