Replies: 2 comments 4 replies
-
For reference, my current workaround for development is:
That is kind of cumbersome. haha... ^^ |
Beta Was this translation helpful? Give feedback.
-
This is a really interesting! I'd love to support this, although right now our build system assumes that file names don't change as a part of build, and I think moving the file path would fit that description. It sounds like you need support to add new files inside of a plugin. Instead of having you modify and fork the official Svelte plugin, it would be better to give you a way to do this yourself (basic workflow: check each file in a build, if it lives in Lets give our new plugin system a few days to settle down post 2.7 release, and then would love to spin this into an official issue / would love a PR if you were interested in adding. |
Beta Was this translation helpful? Give feedback.
-
Hey,
I'd like to output a file in a different relative path than the one it is in the
src
folder.Practically, I have a special directory
src/_pages
holding.svelte
files and I would like to output an.html
file for each one of these files to mount my.js
files on. Obviously, these html files would need to be placed relative to thebuild/
directory directly instead ofbuild/_dist_/_pages/
.Is that something you are willing to support?
I was thinking we could be able to define the output path in this kind of way:
If
outputPath
is not provided, then Snowpack knows it is the default and in any case, it just needs to append the file extension to the path to create the file.Incidentally, it would also allow for transforming the name of the output file if we want to set every file name as lowercase for example or create cleaner paths in any way...
Beta Was this translation helpful? Give feedback.
All reactions