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

ProjextAureliaPlugin

It updates a target webpack and Babel configuration in order to work with the Aurelia framework.

Method Summary

Public Methods
public

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

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. Update the target HTML rules to include the aurelia-extract-clean-loader loader.
  2. Manually add the aurelia-webpack-plugin/html-requires-loader.
  3. Add the target source directory for modules resolution.
  4. Update the webpack entry point and add the Aurelia plugin for webpack.
  5. Update the target Babel configuration.
  6. Filter Aurelia packages if the target is a library.

Params:

NameTypeAttributeDescription
app Projext

The projext main container