[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.
src/main/js
. While this works fine on the first compilation, changes to the Javascript sources are not picked up by fastOptJS::webpack
. I tried adding webpackMonitoredDirectories += sourceDirectory.value / "js"
, but that didn't help. Would it be possible to have fastOptJS::webpack
automatically detect changes to Javascript sources and retrigger webpack bundling if changes are detected?
fastOptJS / fileInputs += sourceDirectory.value.toGlob / "js" / "*.js"
, but that also didn't help. Maybe I'm misunderstanding SBT internals here?