aurelia-contrib / aurelia-open-id-connect

An aurelia adapter for the IdentityModel/oidc-client-js
https://zamboni-app.azurewebsites.net
MIT License
54 stars 18 forks source link

Not all files are correctly packed in vendor-bundle #19

Closed AndreSteenbergen closed 6 years ago

AndreSteenbergen commented 7 years ago

In Aurelia CLI the following files don't get packed in vendor-bundle.js

When I open the network tab I see these files that don't get opened from vendor-bundle:

http://localhost:9000/node_modules/aurelia-open-id-connect/dist/amd/open-id-connect-user-block.js
http://localhost:9000/node_modules/aurelia-open-id-connect/dist/amd/open-id-connect-role-filter.js
http://localhost:9000/node_modules/aurelia-open-id-connect/dist/amd/open-id-connect-user-block.html

This is in my aurelia.json

{
            "name": "aurelia-open-id-connect",
            "path": "../node_modules/aurelia-open-id-connect/dist/amd",
            "main": "index"
          },
          "oidc-client"
jonathaneckman commented 7 years ago

I am having the same issue using webpack.

shaunluttin commented 7 years ago

Thank you for the issue. I'm planning to resume work on this later this year and will attempt to resolve it.

nmocruz commented 6 years ago

for webpack we need to add this to the plugin list

 new ModuleDependenciesPlugin({            
            "aurelia-open-id-connect": ["./open-id-connect-user-block", "./open-id-connect-role-filter"]
   }),

because I'm using the asp spa template, I'm puting in the ...vendor.js

shaunluttin commented 6 years ago

Duplicate: https://github.com/shaunluttin/aurelia-open-id-connect/issues/9