How can I bundle my index.html in my webpack bundle

108 Views Asked by At

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?

1

There are 1 best solutions below

2
Julien Richard-Foy On

This is not the responsibility of the webpack tool. You should just define a custom sbt task that copies your HTML file.