Installation
npm install --save @types/webpack-cdn-inject
Summary
This package contains type definitions for webpack-cdn-inject (https://github.com/drolsen/webpack-cdn-inject#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-cdn-inject.
index.d.ts
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[] | undefined;
/**
* Defines urls to be added to document body (tag type is defined by url's file extension).
*/
body?: string[] | undefined;
}
}
declare class WebpackCDNInject extends Plugin {
constructor(options?: WebpackCDNInject.Options);
}
export = WebpackCDNInject;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/webpack
Credits
These definitions were written by Piotr Błażejewicz.