mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: expose variable window.EXCALIDRAW_ASSET_PATH to allow host define the path for excalidraw assets (#3068)
* 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
This commit is contained in:
parent
7c5481b877
commit
3bc18f6aed
9 changed files with 35 additions and 12 deletions
|
@ -86,7 +86,9 @@
|
|||
/>
|
||||
|
||||
<link rel="stylesheet" href="fonts.css" type="text/css" />
|
||||
|
||||
<script>
|
||||
window.EXCALIDRAW_ASSET_PATH = "/";
|
||||
</script>
|
||||
<% if (process.env.REACT_APP_GOOGLE_ANALYTICS_ID) { %>
|
||||
<script
|
||||
async
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue