@types/browser-sync-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

2.2.5 • Public • Published

Installation

npm install --save @types/browser-sync-webpack-plugin

Summary

This package contains type definitions for browser-sync-webpack-plugin (https://github.com/Va1/browser-sync-webpack-plugin/blob/master/README.md).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/browser-sync-webpack-plugin.

index.d.ts

import BrowserSync = require("browser-sync");
import { Plugin } from "webpack";

declare namespace BrowserSyncPlugin {
    interface Options {
        /**
         * BrowserSync instance init callback.
         * @defaultValue undefined
         */
        callback?(error: Error, bs: BrowserSync.BrowserSyncInstance): void;
        /**
         * allows BrowserSync to inject changes inplace instead of reloading the page when changed
         * chunks are all CSS files.
         * @defaultValue false
         */
        injectCss?: boolean | undefined;
        /**
         * BrowserSync instance name.
         * @defaultValue 'bs-webpack-plugin'
         */
        name?: string | undefined;
        /**
         * Should BrowserSync handle reloads?
         * @defaultValue true
         */
        reload?: boolean | undefined;
    }
}
declare class BrowserSyncPlugin extends Plugin {
    constructor(browserSyncOptions: BrowserSync.Options, pluginOptions?: BrowserSyncPlugin.Options);
}

export = BrowserSyncPlugin;

Additional Details

Credits

These definitions were written by Derek Sifford.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/browser-sync-webpack-plugin

Weekly Downloads

2,656

Version

2.2.5

License

MIT

Unpacked Size

4.96 kB

Total Files

5

Last publish

Collaborators

  • types