2.2.5 • Published 7 months ago

@types/browser-sync-webpack-plugin v2.2.5

Weekly downloads
3,421
License
MIT
Repository
github
Last release
7 months ago

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

// Type definitions for browser-sync-webpack-plugin 2.2
// Project: https://github.com/Va1/browser-sync-webpack-plugin/blob/master/README.md
// Definitions by: Derek Sifford <https://github.com/dsifford>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7

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.

2.2.3

8 months ago

2.2.5

7 months ago

2.2.4

7 months ago

2.2.2

3 years ago

2.2.1

3 years ago

2.2.0

5 years ago