0.0.1 • Published 1 year ago

vitesandbox-client v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ViteSandbox

An Online Vite Sandbox that compiles web projects based on browser-vite

You can try ViteSandbox in the page:

https://mcuking.github.io/vitesandbox-client-example/

image

Usage

Usage Example Code:

const files = {
  '/package.json': JSON.stringify(packageJson),
  '/index.html': htmlCode,
  '/src/index.js': entryCode,
  '/src/index.less': lessCode,
  '/src/App.js': appCode,
};

<Sandbox
    bundlerURL="https://mcuking.github.io/vitesandbox-client/"
    files={files} />

For more details, please check this repo: https://github.com/mcuking/vitesandbox-client-example

Architecture

Article

搭建一个浏览器版 Vite 沙箱