|
1 | 1 | <h1 align="center">trunk</h1>
|
2 | 2 | <div align="center">
|
| 3 | + |
| 4 | +[](https://github.com/thedodd/trunk/actions) |
| 5 | +[](https://crates.io/crates/trunk) |
| 6 | +[](LICENSE) |
| 7 | + |
| 8 | + |
| 9 | + |
3 | 10 | <strong>
|
4 | 11 | Build, bundle & ship your Rust WASM application to the web.
|
5 | 12 | </strong>
|
|
10 | 17 | </div>
|
11 | 18 | <br/>
|
12 | 19 |
|
13 |
| -[](https://github.com/thedodd/trunk/actions) |
14 |
| -[](https://crates.io/crates/trunk) |
15 |
| -[](LICENSE) |
16 |
| - |
17 |
| - |
18 |
| - |
19 | 20 | Goals:
|
20 | 21 | - Leverage the wasm-bindgen ecosystem for all things related to building Rust WASM for the web.
|
21 | 22 | - Simple, zero-config bundling of WASM, JS loader & other assets (images, css, scss) via a source HTML file.
|
@@ -43,7 +44,7 @@ pub fn main() {
|
43 | 44 | }
|
44 | 45 | ```
|
45 | 46 |
|
46 |
| -Trunk uses a source HTML file to drive all asset building and bundling. Trunk also ships with a [built-in SASS/SCSS compiler](https://github.com/connorskees/grass), so let's get started with the following example. Copy this HTML to your cargo project's `src` dir at `src/index.html`: |
| 47 | +Trunk uses a source HTML file to drive all asset building and bundling. Trunk also ships with a [built-in SASS/SCSS compiler](https://github.com/compass-rs/sass-rs), so let's get started with the following example. Copy this HTML to your cargo project's `src` dir at `src/index.html`: |
47 | 48 |
|
48 | 49 | ```html
|
49 | 50 | <html>
|
@@ -88,7 +89,7 @@ Trunk leverages Rust's powerful concurrency primitives for maximum build speeds.
|
88 | 89 | Trunk is still a young project, and new asset types will be added as we move forward. Keep an eye on [trunk#3](https://github.com/thedodd/trunk/issues/3) for more information on planned asset types, implementation status, and please contribute to the discussion if you think something is missing.
|
89 | 90 |
|
90 | 91 | Currently supported assets:
|
91 |
| -- ✅ `sass`: Trunk ships with a [built-in sass/scss compiler](https://github.com/connorskees/grass). Just link to your sass files from your source HTML, and Trunk will handle the rest. This content is hashed for cache control. |
| 92 | +- ✅ `sass`: Trunk ships with a [built-in sass/scss compiler](https://github.com/compass-rs/sass-rs). Just link to your sass files from your source HTML, and Trunk will handle the rest. This content is hashed for cache control. |
92 | 93 | - ✅ `css`: Trunk will copy linked css files found in the source HTML without content modification. This content is hashed for cache control.
|
93 | 94 | - In the future, Trunk will resolve local `@imports`, will handle minification (see [trunk#7](https://github.com/thedodd/trunk/issues/3)), and we may even look into a pattern where any CSS found in the source tree will be bundled, which would enable a nice zero-config "component styles" pattern. See [trunk#3](https://github.com/thedodd/trunk/issues/3) for more details.
|
94 | 95 | - ✅ `icon`: Trunk will automatically copy referenced icons to the `dist` dir. This content is hashed for cache control.
|
|
0 commit comments