This is an experimental command to run to add Pug to your SvelteKit project or Vite-powered Svelte app.
You must start with a fresh copy of the official SvelteKit template, which is currently created by running this command:
npm init svelte@next
Once that is set up, run this command in your project directory to set up Pug:
npx svelte-add Leftium/pug-adder
You must start with a fresh copy of the official Vite-powered Svelte app template, which is currently created by running this command:
npm init @vitejs/app # Choose svelte or svelte-ts
Once that is set up, run this command in your project directory to set up Pug:
npx svelte-add Leftium/pug-adder
After the adder runs,
-
You can write Pug syntax in a <template lang="pug"> block in Svelte files.
-
You can apply another Svelte Adder to your project for more functionality.
Create an issue and I'll try to help.
Create an issue or pull request and I'll try to fix.
These are new tools, so there are likely to be problems in this project. Thank you for bringing them to my attention or fixing them for me.
MIT
Repository preview image generated with GitHub Social Preview
This README was generated with ❤️ by readme-md-generator