@types/webpack-cdn-inject
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/webpack-cdn-inject

Weekly Downloads

8

Version

1.0.5

License

MIT

Unpacked Size

3.98 kB

Total Files

5

Last publish

Collaborators

  • types