-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathindex.d.ts
41 lines (33 loc) · 1.08 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import * as webpack from 'webpack'
declare namespace WebpackShellPlugin {
interface Options {
/** Scripts to execute on the initial build. Defaults to []. */
onBuildStart?: string[]
/**
* Scripts to execute after files are emitted at the end of the
* compilation. Defaults to [].
*/
onBuildEnd?: string[]
/** Scripts to execute after Webpack's process completes. Defaults to []. */
onBuildExit?: string[]
/**
* Switch for development environments. This causes scripts to execute once.
* Useful for running HMR on webpack-dev-server or webpack watch mode.
* Defaults to true.
*/
dev?: boolean
/**
* Switches script execution process from spawn to exec. If running into
* problems with spawn, turn this setting on. Defaults to false.
*/
safe?: boolean
/** DEPRECATED. Enable for verbose output. Defaults to false. */
verbose?: boolean
}
class Plugin extends webpack.Plugin {
constructor(options?: Options)
}
}
declare module 'webpack-shell-plugin' {
export = WebpackShellPlugin.Plugin
}