-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters