/fronts-example

Primary LanguageTypeScriptMIT LicenseMIT

fronts-example

A simple example for Fronts

Installation

yarn install

Development

yarn start

Runs the apps in the development mode, and open http://localhost:3001 to view App1, and open http://localhost:3002 to view App2 in the browser.

cd packages/app1 && SPA=true yarn start

Runs the app1 in non-micro-frontends mode.

Build

yarn build

Build the projects, and build files are stored in the dist/ directory. Use the --mode=production flag for a production build.

Serve

yarn serve

Serve the projects with the dist/ directory source, and open http://localhost:3001 to view App1, and open http://localhost:3002 to view App2 in the browser.