Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvsde/svelte-micro-frontend
Basic Svelte plus Vite configuration for micro frontend development.
https://github.com/mvsde/svelte-micro-frontend
micro-frontend microfrontend svelte sveltejs vite vitejs
Last synced: 5 days ago
JSON representation
Basic Svelte plus Vite configuration for micro frontend development.
- Host: GitHub
- URL: https://github.com/mvsde/svelte-micro-frontend
- Owner: mvsde
- License: mit
- Created: 2021-06-15T05:49:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-14T07:58:30.000Z (24 days ago)
- Last Synced: 2024-10-30T09:37:07.330Z (8 days ago)
- Topics: micro-frontend, microfrontend, svelte, sveltejs, vite, vitejs
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Svelte Micro Frontend Boilerplate
Basic [Svelte](https://svelte.dev) plus [Vite](https://vitejs.dev) configuration for micro frontend development.
## Requirements
- [Node.js](https://nodejs.org)
- [npm CLI](https://docs.npmjs.com/cli/) (bundled with Node.js)## Installation
[Download the source files](https://github.com/mvsde/svelte-micro-frontend/archive/refs/heads/main.zip) (don’t clone since you want to create a “new” project).
Install dependencies with:
```sh
npm install
```## Usage
Start development server:
```sh
npm run dev
```Build production files:
```sh
npm run build
```## Embed the micro frontend
Reference the output JS file inside the `` before any ``:
```html
```
Add the following inside the `` where you want the micro frontend to appear:
```html
```