0.0.5 • Published 2 years ago

vite-plugin-flatpad v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vite-plugin-flatpad

A plugin for flatpad working with vite to build micro-frontend apps.

✨ features

1️⃣ build-index-html (src/build-index-html.ts)

Build sub app with entry script that has mount and unmount methods exported.

In original vite bundle, the export statement in main.js will be removed while building, which will cause flatpad cannot access the sub app's lifesycle functions.

This plugin will change the input of rollup to src/main.js instead of index.html, then regenerate the index.html with the sub app's entry script.

2️⃣ build-absolute-path (src/build-absolute-path.ts)

The path of import statement in assets/*.js is always relative after bundling. This plugin will change the relative path to absolute path.

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago