Last active
April 22, 2021 11:30
-
-
Save datio/ad422adf5878e6a9d3a9e0d122470ec1 to your computer and use it in GitHub Desktop.
Replace the SvelteKit 'svelte' identifier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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