Home Reference Source
import ProjextWebpackBundleRunner from 'projext-plugin-webpack/src/plugins/bundleRunner/index.js'
public class | source

ProjextWebpackBundleRunner

This is a webpack plugin that executes a Node bundle when it finishes compiling.

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

apply(compiler: Object)

This is called by webpack when the plugin is being processed.

public

Gets the plugin options.

Public Constructors

public constructor(options: ProjextWebpackBundleRunnerOptions) source

Params:

NameTypeAttributeDescription
options ProjextWebpackBundleRunnerOptions
  • optional
  • default: {}

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:

NameTypeAttributeDescription
compiler Object

The compiler information provided by webpack.

public getOptions(): ProjextWebpackBundleRunnerOptions source

Gets the plugin options.