We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bea1da commit a9267d9Copy full SHA for a9267d9
src/main/scala/sri/sbt/platform/ConfigBuilder.scala
@@ -61,13 +61,15 @@ object ConfigBuilder {
61
artifactPath in fullOptJS := baseDirectory.value / aPath,
62
dev := {
63
val indexFile = baseDirectory.value / entryFile
64
+ IO.touch(indexFile, setModified = false)
65
val indexContent = IO.read(indexFile)
66
(fastOptJS in config).value.data
67
val launcher = s"""require("./$aPath");"""
68
if (!indexContent.contains(launcher)) IO.append(indexFile, launcher)
69
},
70
prod := {
71
72
73
74
(fullOptJS in config).value.data
75
0 commit comments