UNPKG

vite-plugin-import-rewriter

Version:
77 lines (65 loc) 1.51 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <link rel="icon" type="image/svg+xml" href="favicon.svg" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>vite-plugin-import-rewriter</title> <style> body, div, h1, p { margin: 0; } body { width: 100vw; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; } .title { font-size: 30px; } .logs { margin-top: 30px; font-size: 18px; } .logs .box { display: flex; flex-direction: column; justify-content: center; padding: 15px; margin: 10px 0; width: 500px; box-shadow: 0 0 10px #eee; border-radius: 10px; } .logs .box p:first-child { font-size: 16px; color: #999; } .logs p { line-height: 2; color: #555; } .logs span { color: yellowgreen; } .logs b { color: red; } .logs .blue { color: blue; } </style> </head> <body> <h1 class="title">VitePluginImportRewriter</h1> <p>重写 `import` 的 `vite` 插件。</p> <div class="logs"></div> <script type="module" src="./main.ts"></script> </body> </html>