svelte-tailwind-snowpack

Svelte Tailwind Snowpack

A template to create a web project using Svelte, Tailwind and built with Snowpack.

Svelte Tailwind Snowpack Boilerplate

✨ Bootstrapped with Create Snowpack App (CSA).

Available Scripts

yarn start

Runs the app in the development mode. Open http://localhost:8080 to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

yarn build

Builds a static copy of your site to the build/ folder. Your app is ready to be deployed!

For the best production performance: Add a build bundler plugin like @snowpack/plugin-webpack or snowpack-plugin-rollup-bundle to your snowpack.config.json config file.

Environment Variables

You can use environment variables provided they are prefixed with SNOWPACK_PUBLIC_.

  1. Define your variable in an .env file in the root of your project
  2. Use them in your code using import.meta.env.SNOWPACK_PUBLIC_YOUR_ENV_VAR

License

This project is licensed under the MIT License.

Top categories

Loading Svelte Themes