av8ta / callbag-jsx-single-spa

An example of a snowpack application that serves as a single-spa application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project shows how to create a callbag-jsx single-spa application built with Snowpack

Standalone Mode

yarn start

Runs the app in standalone 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.

Integrated Mode

yarn start

open 'http://single-spa-playground.org/playground/instant-test?name=callbag-jsx-single-spa&framework=other&useNativeModules=true&url=http%3A%2F%2Flocalhost%3A8080%2Findex.js'

You can load this application into a single-spa root config via import-map-overrides. See more at https://single-spa.js.org/docs/recommended-setup#local-development

The URL to use for import-map-overrides is http://localhost:8080/index.js

Building

yarn build

This produces a build directory. Note the changes in the snowpack.config.js, which alter the output bundle to work as a SystemJS module.

About

An example of a snowpack application that serves as a single-spa application


Languages

Language:JavaScript 87.3%Language:HTML 11.4%Language:CSS 1.3%