{"id":41419143,"url":"https://github.com/baileyherbert/svelte-vite-starter","last_synced_at":"2026-01-23T14:00:06.149Z","repository":{"id":47791240,"uuid":"341366429","full_name":"baileyherbert/svelte-vite-starter","owner":"baileyherbert","description":"🔥 Svelte starter with Vite 4, TypeScript, SCSS, Babel, HMR, and ESM.","archived":false,"fork":false,"pushed_at":"2023-10-26T00:45:07.000Z","size":50,"stargazers_count":35,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T21:43:47.083Z","etag":null,"topics":["babel","hmr","scss","starter-template","svelte","typescript","vite"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baileyherbert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-02-22T23:24:17.000Z","updated_at":"2024-09-08T17:22:53.000Z","dependencies_parsed_at":"2023-01-22T01:45:23.876Z","dependency_job_id":"773013cd-f38b-454f-8925-80e7eb52b087","html_url":"https://github.com/baileyherbert/svelte-vite-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/baileyherbert/svelte-vite-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baileyherbert%2Fsvelte-vite-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baileyherbert%2Fsvelte-vite-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baileyherbert%2Fsvelte-vite-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baileyherbert%2Fsvelte-vite-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baileyherbert","download_url":"https://codeload.github.com/baileyherbert/svelte-vite-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baileyherbert%2Fsvelte-vite-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28693434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T11:01:27.039Z","status":"ssl_error","status_checked_at":"2026-01-23T11:00:26.909Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel","hmr","scss","starter-template","svelte","typescript","vite"],"created_at":"2026-01-23T14:00:03.527Z","updated_at":"2026-01-23T14:00:06.123Z","avatar_url":"https://github.com/baileyherbert.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Svelte Vite Starter\n\nA starter template for [Svelte](https://svelte.dev) that comes preconfigured with [Vite](https://vitejs.dev/),\nTypeScript, SCSS, Babel, Autoprefixer, and HMR.\n\n- [Getting started](#getting-started)\n  - [Installation](#installation)\n  - [Starting the development server](#starting-the-development-server)\n  - [Building for production](#building-for-production)\n- [Usage](#usage)\n  - [Global stylesheets](#global-stylesheets)\n  - [Browsers list](#browsers-list)\n  - [Babel customization](#babel-customization)\n  - [Source maps in production](#source-maps-in-production)\n  - [Import path aliases](#import-path-aliases)\n\n---\n\n## Getting started\n\n### Installation\n\nPull the template files into the current working directory with [`degit`](https://github.com/Rich-Harris/degit) and\nthen install dependencies.\n\n```bash\nnpx degit baileyherbert/svelte-vite-starter\nnpm install\n```\n\n### Starting the development server\n\nRun the `dev` script to start a live development server with hot module replacement. Then check the output for a link\nto the app, which is usually `http://localhost:5000/`:\n\n```bash\nnpm run dev\n```\n\n### Building for production\n\nRun the `build` script to bundle the app for production. The bundle will be created at `/dist/assets/` and the `dist`\ndirectory will contain all files you need to host the app:\n\n```bash\nnpm run build\n```\n\n\u003e 💡 **Tip:** You can quickly test the production build by running `npm run preview` locally.\n\n---\n\n## Usage\n\n### Global stylesheets\n\nEdit the `index.html` file and add additional `\u003clink\u003e` references to stylesheets:\n\n```html\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"/src/styles/index.scss\"\u003e\n```\n\nYou can specify `css`, `scss`, and `sass` files here, and they will be compiled and minified as necessary. These styles\nwill be added to the bundle in the order specified. Svelte's styles will always load last.\n\n\u003e 💡 **Note:** The paths to these assets must start with `/` in order to resolve.\n\n### Browsers list\n\nThe bundle will be transpiled to run on the browsers specified in `package.json`:\n\n```json\n\"browserslist\": [\n    \"defaults\"\n]\n```\n\nIf you wish to customize this, please refer to the list of\n[example browserslist queries](https://github.com/browserslist/browserslist#full-list).\n\n### Babel customization\n\nProduction builds are transpiled with Babel automatically. If you wish to disable this, edit the `vite.config.ts` file:\n\n```ts\nconst useBabel = false;\n```\n\n### Source maps in production\n\nSource maps are generated automatically during development. They are not included in production builds by default. If\nyou wish to change this behavior, edit the `vite.config.ts` file:\n\n```ts\nconst sourceMapsInProduction = true;\n```\n\n### Import path aliases\n\nDefine import path aliases from the `tsconfig.json` file. For example:\n\n```json\n\"paths\": {\n    \"src/*\": [\"src/*\"],\n    \"@stores/*\": [\"src/stores/*\"]\n}\n```\n\nYou can then import files under these aliases and Vite will resolve them. Your code editor should also use them\nfor automatic imports:\n\n```ts\nimport { users } from '@stores/users'; // src/stores/users.ts\n```\n\nThe root directory is configured as a base path for imports. This means you can also import modules with an absolute\npath from anywhere in the project instead of using a large number of `..` to traverse directories.\n\n```ts\nimport { users } from 'src/stores/users';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaileyherbert%2Fsvelte-vite-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaileyherbert%2Fsvelte-vite-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaileyherbert%2Fsvelte-vite-starter/lists"}