import ProjextWebpackBundleRunner from 'projext-plugin-webpack/src/plugins/bundleRunner/index.js'
ProjextWebpackBundleRunner
This is a webpack plugin that executes a Node bundle when it finishes compiling.
Constructor Summary
Public Constructor | ||
public |
constructor(options: ProjextWebpackBundleRunnerOptions) |
Method Summary
Public Methods | ||
public |
This is called by webpack when the plugin is being processed. |
|
public |
Gets the plugin options. |
Public Constructors
public constructor(options: ProjextWebpackBundleRunnerOptions) source
Params:
Name | Type | Attribute | Description |
options | ProjextWebpackBundleRunnerOptions |
|
Settings to customize the plugin behaviour. |
Public Methods
public apply(compiler: Object) source
This is called by webpack when the plugin is being processed. The method takes care of adding the required listener to the webpack hooks in order to get the file, execute it and stop it.
Params:
Name | Type | Attribute | Description |
compiler | Object | The compiler information provided by webpack. |