Home Reference Source
import ProjextAngularJSPlugin from 'projext-plugin-webpack-angularjs/src/plugin.js'
public class | source

ProjextAngularJSPlugin

It updates targets Babel configuration in order to add support for AngularJS annotations.

Constructor Summary

Public Constructor
public

Class constructor.

Method Summary

Public Methods
public

This is the method called when the plugin is loaded by projext.

Public Constructors

public constructor() source

Class constructor.

Public Methods

public register(app: Projext) source

This is the method called when the plugin is loaded by projext. It setups all the listeners for the events the plugin needs to intercept in order to:

  1. Add support for AngularJS annotations.
  2. Exclude AngularJS packages from the bundle when the target is a library.
  3. Generate the settings for a target default HTML.

Params:

NameTypeAttributeDescription
app Projext

The projext main container.