@sidnt one of the webpack solutions for this is called Externals https://webpack.js.org/configuration/externals/
Alternatively, you can also define a Scala.js facade with JSGlobal instead of JSImport for your JS dependency, although it will probably be hard to use pre-made facades that already rely on JSImport that way
[error] Module Warning (from ./node_modules/scalajs-friendly-source-map-loader/index.js):
[error] (Emitted value instead of an instance of Error) Cannot find source file '../../../../../../../../../home/nick/Forks/scala.rx/scalarx/shared/src/main/scala/rx/Ctx.scala': Error: Can't resolve '../../../../../../../../../home/nick/Forks/scala.rx/scalarx/shared/src/main/scala/rx/Ctx.scala' in '/Users/jason/source/erp/erp-front/target/scala-2.12/scalajs-bundler/main’
/home/nick/
even coming from? Possibly related to scalacenter/scalajs-bundler#173. Maybe I ought to ask in the scalajs channel.
../../../../public/fonts/My-Font.eot
const resourcesDir = path.resolve(rootDir, "../common/src/main/resources”);
resolve: {
alias: {
resources: resourceDir
resources/fonts/etc
sbt-web-scalajs-bundler
work with akka http? I tried adapting Play
example, but somethings missing - assets do not seem to link up in classpath, I'm guessing Play
provides some helpful settings under the hood and Akka
doesn't.
sbt shell
and sbt
Run/Debug configurations, issue arises when server
is ran as simple application from the main class through Run/Debug configurations, so it's not completely unusable, just got to fallback to sbt
everywhere.