Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

webpack

Wesley Overdijk edited this page Mar 31, 2016 · 1 revision

In order to get aurelia-authentication with the authFilter working with webpack, you'll need to use the includeSubModules option for the aurelia webpack plugin.

Some Aurelia modules or plugins have more than 1 file that need to be resolved (for example, when a plugin also contains an html template). By default, only the main file of a module is loaded. Adding this option allows you include extra files in the bundles. (source)

new AureliaWebpackPlugin({
  includeSubModules: [
    { moduleId: 'my-aurelia-plugin', include: /optional_regex/, exclude: /optional_regex/ }
  ]
});
Clone this wiki locally