2.2.5 • Published 7 months ago
@types/browser-sync-webpack-plugin v2.2.5
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
- Last updated: Thu, 08 Jul 2021 00:35:42 GMT
- Dependencies: @types/webpack, @types/browser-sync
- Global values: none
Credits
These definitions were written by Derek Sifford.