Skip to content

Instantly share code, notes, and snippets.

@datio
Last active April 22, 2021 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save datio/ad422adf5878e6a9d3a9e0d122470ec1 to your computer and use it in GitHub Desktop.
Save datio/ad422adf5878e6a9d3a9e0d122470ec1 to your computer and use it in GitHub Desktop.
Replace the SvelteKit 'svelte' identifier
pnpm build
cd .svelte
find -name "*svelte*" -exec rename 's/svelte-/custom-/' {} ";"
find -name "*svelte*" -exec rename 's/Svelte-/Custom-/' {} ";"
find . -type f -name "*" -print0 | xargs -0 sed -i 's/svelte-/custom-/g'
find . -type f -name "*" -print0 | xargs -0 sed -i 's/Svelte-/Custom-/g'
sed -i 's/id="svelte"/id="custom"/g' output/server/app.js
/snap/bin/rg "#svelte" -l --null | xargs -0 sed -i 's/#svelte/#custom/g'
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment