-
Notifications
You must be signed in to change notification settings - Fork 305
Serve front-end assets from node_modules #863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serve front-end assets from node_modules #863
Conversation
|
Apparently I introduced a vulnerable dependency, but snyk doesn't let me see it. |
|
Good catch & thanks for the PR! I think it makes sense to remove dependencies on raw.githubusercontent.com Re snyk, I tried to check but got : |
|
Yes, this seems like something we should fix. With what urgency do you thing, @RubenVerborgh ? |
RubenVerborgh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea of serving from npm packages. But let's not copy—they will get out of date.
Instead, let's reuse the technique for serving solid-auth-client and mashlib (#792) through the routeResolvedFile in utils.
RubenVerborgh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, thumbs up from me!
|
Regarding Snyk, I'm following up with @joshdcollins. |
|
I joined Snyk and can now see the problem: |
|
Fixed by d81182f. |
Hello,
While the development of #859 I noticed that the front end dependencies were copied in this repository or loaded from raw.githubusercontent.com. IMHO, that's a bad idea because:
So here's my proposal to be able to install the front-end dependencies through NPM