vite-static 0.4.0

Embed Vite chunks into your Rust application and query them individually.
Documentation
1
2
3
4
5
6
7
8
9
import * as shared from "./shared.js";
import myManifestoURL from "./assets/my-manifesto.txt?no-inline"; // strictly get asset URL

console.log("Hello from entry1.js!");

console.log(`You should look at ${myManifestoURL}.`);

// Shared function test
console.log(shared.foo("baz from entry1"));