Skip to content

Commit

Permalink
feat: images are working in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkenstein committed Feb 10, 2024
1 parent 98e578e commit f000341
Show file tree
Hide file tree
Showing 10 changed files with 324 additions and 319 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ stats.html

yarn-error.log

src/vips/
assets/vips/
6 changes: 2 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>

<script src="src/vips/vips.js"></script>
<script src="assets/vips/vips.js"></script>
<script type="module">
new Vips({
dynamicLibraries: [],
mainScriptUrlOrBlob: "/src/vips/vips-es6.js",
locateFile: (fileName) => {
console.log("locateFile", fileName);
return "/src/vips/" + fileName;
return "/assets/vips/" + fileName;
},
}).then((vips) => {
window.vips = vips;
Expand Down
Loading

0 comments on commit f000341

Please sign in to comment.