Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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


```