Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: about watchSources #26

Open
AlexTo opened this issue Apr 4, 2020 · 3 comments
Open

Question: about watchSources #26

AlexTo opened this issue Apr 4, 2020 · 3 comments

Comments

@AlexTo
Copy link

AlexTo commented Apr 4, 2020

Hi in your build.sbt there is this line

  watchSources ++= (baseDirectory.value / "public/ui" ** "*").get

May I know what does it do ?? There isn't a folder at public/ui

Best,

@yohangz
Copy link
Contributor

yohangz commented Apr 11, 2020

@AlexTo, public/ui is created when you run the build task. Frontend build artifacts will target is set to that dir. This line of code is adding the UI build to play project watch sources.

@AlexTo
Copy link
Author

AlexTo commented Apr 14, 2020

Sorry, after running "dist" in sbt shell, it compiles the "ui" folder where I put my react code into the "public" folder. However I don't think I recreate another "ui" folder under "public" folder, have a look at the screenshot. I think it just put the build of the react code directly under "public" folder, or am I missing something here??

Untitled

@develeon
Copy link

In build.sbt it should say "ui/public" not public/ui or it might fail to get assets.
watchSources ++= (baseDirectory.value / "ui/public" ** "*").get

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants