I set up a new Aurelia project using the latest aurelia-cli. I chose to use webpack and TypeScript. It appears there is not much in the way of documentation when it comes to adding plugins into a project when using webpack. I would like to add aurelia-auth in. I tried adding it to an aurelia section in my package.json:
"aurelia": {
"build": {
"resources": [
"aurelia-auth"
]
}
}
Then using it:
aurelia.use
.standardConfiguration()
.feature(PLATFORM.moduleName('resources/index'))
.plugin(PLATFORM.moduleName('aurelia-auth'), (baseConfig)=>{
baseConfig.configure({});
});
But it does not appear that everything made it in:
Unhandled rejection Error: Unable to find module with ID: aurelia-auth/auth-filter
What is the correct way to add references when using Aurelia CLI and webpack to bundle and run an application?