You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wish to avoid using two parallel package management systems (sbt alongside npm and possibly grunt) so I'm attempting instead to incorporate an sbt plugin that runs webpack into our sbt-web workflow. Unfortunately webpack has ~100 transitive dependencies that take forever for sbt to resolve. My (hopefully temporary) workaround to using the single webpack npm webjar is to build a "fat" webjar containing all transitive dependencies and publish it to my company's S3 repository, so as not to slow down our CI build by several minutes.However, my fat webjar is expanding all of the webjar contents into a single directory in the node_modules directory.
In other words, after the expansion, I'm looking for:
Leaving aside whether this is a good idea or not (I do not plan on using any more than the most basic features of webpack, so upgrading webpack in the future may not even be necessary) - does anyone know why this might be happening? Is it a bug in sbt-web, or something wrong with the structure of my fat webjar?
Any help would be very much appreciated.
The text was updated successfully, but these errors were encountered:
I ended up coming to another workaround by expanding the webpack webjar, running npm install, then re-bundling the contents in a new jar. But it seems to me it should be possible to bundle up all the transitive dependencies of webpack as jars within the same jar. So I'm curious to know if there is a way to resolve the above issue.
I wish to avoid using two parallel package management systems (sbt alongside npm and possibly grunt) so I'm attempting instead to incorporate an sbt plugin that runs webpack into our sbt-web workflow. Unfortunately webpack has ~100 transitive dependencies that take forever for sbt to resolve. My (hopefully temporary) workaround to using the single webpack npm webjar is to build a "fat" webjar containing all transitive dependencies and publish it to my company's S3 repository, so as not to slow down our CI build by several minutes.However, my fat webjar is expanding all of the webjar contents into a single directory in the node_modules directory.
In other words, after the expansion, I'm looking for:
and i'm getting:
Leaving aside whether this is a good idea or not (I do not plan on using any more than the most basic features of webpack, so upgrading webpack in the future may not even be necessary) - does anyone know why this might be happening? Is it a bug in sbt-web, or something wrong with the structure of my fat webjar?
Any help would be very much appreciated.
The text was updated successfully, but these errors were encountered: