Home > @ricado/version-file > GenerateVersionFilePlugin

GenerateVersionFilePlugin class

A Webpack plugin for generating a version.json file.

Signature:

export declare class GenerateVersionFilePlugin implements Webpack.WebpackPluginInstance 

Implements: Webpack.WebpackPluginInstance

Remarks

A simple Webpack Plugin that generates a ‘version.json’ file containing version information extracted from the apps package.json file. In production, an app can poll this file to detect and notify the user of any new releases.

Constructors

Constructor Modifiers Description
(constructor)(options)   Constructs a new instance of the GenerateVersionFilePlugin class

Properties

Property Modifiers Type Description
defaultOptions static IVersionFileConfigOptions  
options   IVersionFileConfigOptions  

Methods

Method Modifiers Description
apply(compiler)