Don't include "src" and "public" folders by default #814
Replies: 4 comments 9 replies
-
|
Thanks for filing. Create Snowpack App templates are configured to act as standalone apps, so you'll need to create your own If you get your setup working, please share the config file! I'd love to see a guide/tutorial for using Snowpack with a Java app |
Beta Was this translation helpful? Give feedback.
-
|
I'd love to see an easy way use something else then |
Beta Was this translation helpful? Give feedback.
-
|
If you aren't using Create Snowpack App, then you can mount whatever directories you'd like: |
Beta Was this translation helpful? Give feedback.
-
|
This worked for me, thanks. "mount": {
"frontend": "/"
}<script type="module" src="/index.js"></script> |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use snowpack to build a frontend for my java spring boot app, but I'm having an issue because snowpack always includes the "src" and "public" folders when it builds. This conflicts with my project because Spring Boot (and I think java apps in general) already assume your java code is in the
srcfolder. When I runsnowpack buildall of my java code is getting copied into the_dist_folder. I'd like to be able to control these defaults and just put all of my frontend code in a folder calledfrontendor something similar. It seems likesrcandpublicare good defaults forsnowpack devbutsnowpack buildshould be more customizable and let you specify something different.Beta Was this translation helpful? Give feedback.
All reactions