Configure vite to copy from src to dist (#2)

* nit

* move

* direct copy lib dir

* nit

* disable treeshake
This commit is contained in:
Chenlei Hu
2024-06-13 23:09:10 -04:00
committed by GitHub
parent c77b5b3f78
commit 3fbb75ce76
57 changed files with 297 additions and 36 deletions

View File

@@ -0,0 +1,9 @@
import { addStylesheet } from "../utils.js";
addStylesheet(import.meta.url);
export function createSpinner() {
const div = document.createElement("div");
div.innerHTML = `<div class="lds-ring"><div></div><div></div><div></div><div></div></div>`;
return div.firstElementChild;
}