3bc18f6aed
* feat: expose variable window.EXCALIDRAW_ASSET_PATH to allow host define the path for excalidraw assets No more __webpack_public_path__ needed explicitly in host and it will default to unpkg cdn if window.EXCALIDRAW_ASSET_PATH is not defined * fix * add public path * add public path * assign only when env not test * read from package.json * Append content hash to excalidraw-assets so cache bursting happens when version update * update changelog and readme * update
10 lines
302 B
TypeScript
10 lines
302 B
TypeScript
import React from "react";
|
|
import ReactDOM from "react-dom";
|
|
import ExcalidrawApp from "./excalidraw-app";
|
|
|
|
import "./excalidraw-app/pwa";
|
|
import "./excalidraw-app/sentry";
|
|
window.__EXCALIDRAW_SHA__ = process.env.REACT_APP_GIT_SHA;
|
|
|
|
ReactDOM.render(<ExcalidrawApp />, document.getElementById("root"));
|