What's the path of the JS file in the dev server? #1033
-
|
The documentation says
I'm not sure what "configuration properties" refers to. I have set a port and the server seems to respond with 404s, so that's that, but how do I know the path? |
Beta Was this translation helpful? Give feedback.
Answered by
konsoletyper
May 29, 2025
Replies: 1 comment 3 replies
-
|
You configure you path. In configuration you set file name and relative path to it. How are you running dev server? Can you share configuration? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So, you are running dev server from Gradle plugin, not as IDEA run configuration? Then you have two points which influence location in dev server:
relativePathInOutputDir(which isjsby default)targetFileName(which is gradle project name by default + '.js' suffix)The same rule is applied when building JS file by
generateJavaScripttask. The base dir is$BUILD_DIR/generated/teavm, and then particular task adds${relativePathInOutputDir}/${targetFileName}. BTW, when your project also haswarplugin, TeaVM plugin will add TeaVM base build dir (i.e.$BUILD_DIR/generated/teavm) into war file output, so you can find JS, generated by TeaVM, under the same relative path (i.e.${relativePath…