Search code examples
templatesdefaultsvelte-3

Changing default locations for svelte template


After having copied the svelte template on my local machine, I need npm install to create public and src folders to different locations than the default ones. Specifically, if I run npm install from my /projects/sveltetemplate folder, I'd like to have public and src created as subfolders in /projects/appdev . I may also need to use a different name for public folder.

How can I do that?


Solution

  • You can just change the folders location and then update the file rollup.config.js to use those new locations.