monitoro-inc / svelte-tailwind-snowpack

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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


Languages

Language:HTML 35.6%Language:JavaScript 27.2%Language:Svelte 22.2%Language:CSS 15.1%