Skip to content

Instantly share code, notes, and snippets.

@datio
Last active September 22, 2021 09:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save datio/95d972e8902079fded51029a23c4daa8 to your computer and use it in GitHub Desktop.
Save datio/95d972e8902079fded51029a23c4daa8 to your computer and use it in GitHub Desktop.
Hide Svelte or Sapper usage from Wappalyzer et al.
// make sure you have changed your working directory to your project
cd app
// svelte
// see https://github.com/sveltejs/svelte/issues/2900#issuecomment-701644971
npm install svelte
sed -i 's/svelte-\$/_$/g' ./node_modules/svelte/compiler.js
// sapper
npm install sapper
find . -type f -exec sed -i 's/__SAPPER__/__INFOMAX__/g' {} +
// sapper template
find . -type f -exec sed -i 's/#sapper/#infomax/g' {} +
find . -type f -exec sed -i 's/<div id="sapper">/<div id="infomax">/g' {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment