import ProjextAureliaPlugin from 'projext-plugin-webpack-aurelia/src/plugin.js'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:
- Update the target HTML rules to include the
aurelia-extract-clean-loaderloader. - Manually add the
aurelia-webpack-plugin/html-requires-loader. - Add the target source directory for modules resolution.
- Update the webpack entry point and add the Aurelia plugin for webpack.
- Update the target Babel configuration.
- Filter Aurelia packages if the target is a library.
Params:
| Name | Type | Attribute | Description |
| app | Projext | The projext main container |
