mcuking / vitesandbox-client

An Online Vite Sandbox that compiles web projects.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

import Sandbox from './sandbox';

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 沙箱

About

An Online Vite Sandbox that compiles web projects.

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

License:MIT License


Languages

Language:JavaScript 99.0%Language:HTML 1.0%