Community template for Snowpack + Svelte + Typescript + TailwindCSS
This product is a community template for Snowpack, Svelte, Typescript, and TailwindCSS. It allows users to quickly create a new project and comes with svelte-preprocess for easy code preprocessing. It provides various scripts for running the app, building a static copy, and deploying the app.
To install the template, follow these steps:
npm start script to start the app in development mode. Open http://localhost:8080 to view it in the browser.npm run build script to build a static copy of the app in the build/ folder.For optimal production performance, consider adding a build bundler plugin like “@snowpack/plugin-webpack” or “@snowpack/plugin-parcel” to your snowpack.config.json config file.
Q: What about Eject? A: No eject is needed as Snowpack guarantees zero lock-in, and the Community template for Snowpack + Svelte + Typescript + TailwindCSS strives for the same.
Q: Husky/Lint-Staged
A: Husky/Lint-Staged configs are already present in the package.json file but not in the devDependencies. This is because CSA installs packages and then initializes the git repo, so the Husky commit hook installation fails. To re-enable Husky/Lint-Staged, simply add Husky and Lint-Staged back to the devDependencies.