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
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/browser-sync, @types/webpack
Credits
These definitions were written by Derek Sifford.