... because the plugins reads the last(?) line from sbt output as path where to find the main.js file. Here is one example with sbt.task.timings https://github.com/kalejami/vite-sandbox The plugin thinks that the output from timings is the path to the main.js file. Not sure how to fix this.