I have defined a very basic project that uses the scalajs-bundler plugin. I have defined an index.html file in my src/resources folder. Is there a way I can configure it so that this is also copied to the "target/.../scalajs-bundler/main" folder when I run the "fastOptJS::webpack" command?
Asked
Active
Viewed 96 times
1 Answers
0
This is not the responsibility of the webpack tool. You should just define a custom sbt task that copies your HTML file.

Julien Richard-Foy
- 9,634
- 2
- 36
- 42
-
When I added a file i18n.js to my src/main/resources folder. This is automatically added to the bundle when I run webpack. Why does it copy this file and not any others? – user79074 Jun 29 '19 at 11:25
-
Currently, all .js files on the classpath can be included in the resulting bundle. See my detailed answer [here](https://stackoverflow.com/a/56832264/561721) – Julien Richard-Foy Jul 01 '19 at 08:27