Skip to content

Best Practice for folder layout #286

Answered by manzt
kolibril13 asked this question in General
Discussion options

You must be logged in to vote

Thanks for opening the issue! Originally I saw anywidget's lack of opinion on this topic to be a strength, but I understand why it could be confusing for new comers. Personally I prefer the static/* path as you've seemed to stumble upon yourself. FWIW, the bundling documentation suggests using static: https://anywidget.dev/en/bundling/

I think beyond that, if I can find the time, working on the create-anywidget package to bootstrap a project with more opinionated configuration could be useful.

EDIT (2023-0-18): The recommended approach now (if using a bundler) is to use one of our project templates, which puts things in static/*

npm create anywidget@latest

Replies: 6 comments

Comment options

kolibril13
Aug 13, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by manzt
Comment options

You must be logged in to vote
0 replies
Comment options

kolibril13
Sep 3, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #228 on September 17, 2023 16:37.