You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/content/assets.md
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,7 @@ This will typically look like: `<link data-trunk rel="{type}" href="{path}" ..ot
47
47
48
48
-`data-inline`: (optional) this attribute will inline the compiled CSS from the SASS/SCSS file into a `<style>` tag instead of using a `<link rel="stylesheet">` tag.
49
49
-`data-integrity`: (optional) the `integrity` digest type for code & script resources. Defaults to plain `sha384`.
50
+
-`data-target-path`: (optional) Path where the directory is placed inside the dist dir. If not present, the directory is placed in the dist root. The path must be a relative path without `..`.
50
51
51
52
## css
52
53
@@ -55,7 +56,7 @@ This will typically look like: `<link data-trunk rel="{type}" href="{path}" ..ot
55
56
- In the future, Trunk will resolve local `@imports`, will handle minification (see [trunk#7](https://github.com/trunk-rs/trunk/issues/7)), 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/trunk-rs/trunk/issues/3) for more details.
56
57
-`data-integrity`: (optional) the `integrity` digest type for code & script resources. Defaults to plain `sha384`.
57
58
-`data-no-minify`: (optional) by default, CSS files are minified in `--release` mode (unless building with `--no-minification`). Setting this attribute disables minification for that particular file. Defaults to false.
58
-
-`data-target-path`: (optional) Path where the directory is placed inside the dist dir. If not present the directory is placed in the dist root. The path must be a relative path without `..`.
59
+
-`data-target-path`: (optional) Path where the directory is placed inside the dist dir. If not present, the directory is placed in the dist root. The path must be a relative path without `..`.
59
60
60
61
## tailwind
61
62
@@ -69,7 +70,7 @@ This will typically look like: `<link data-trunk rel="{type}" href="{path}" ..ot
69
70
✅ `rel="icon"`: Trunk will copy the icon image specified in the `href` attribute to the `dist` dir. This content is hashed for cache control.
70
71
71
72
-`data-integrity`: (optional) the `integrity` digest type for code & script resources. Defaults to plain `sha384`.
72
-
-`data-target-path`: (optional) Path where the directory is placed inside the dist dir. If not present the directory is placed in the dist root. The path must be a relative path without `..`.
73
+
-`data-target-path`: (optional) Path where the directory is placed inside the dist dir. If not present, the directory is placed in the dist root. The path must be a relative path without `..`.
73
74
74
75
## inline
75
76
@@ -84,13 +85,13 @@ This will typically look like: `<link data-trunk rel="{type}" href="{path}" ..ot
84
85
85
86
✅ `rel="copy-file"`: Trunk will copy the file specified in the `href` attribute to the `dist` dir. This content is copied exactly, no hashing is performed.
86
87
87
-
-`data-target-path`: (optional) Path where the directory is placed inside the dist dir. If not present the directory is placed in the dist root. The path must be a relative path without `..`.
88
+
-`data-target-path`: (optional) Path where the directory is placed inside the dist dir. If not present, the directory is placed in the dist root. The path must be a relative path without `..`.
88
89
89
90
## copy-dir
90
91
91
92
✅ `rel="copy-dir"`: Trunk will recursively copy the directory specified in the `href` attribute to the `dist` dir. This content is copied exactly, no hashing is performed.
92
93
93
-
-`data-target-path`: (optional) Path where the directory is placed inside the dist dir. If not present the directory is placed in the dist root. The path must be a relative path without `..`.
94
+
-`data-target-path`: (optional) Path where the directory is placed inside the dist dir. If not present, the directory is placed in the dist root. The path must be a relative path without `..`.
94
95
95
96
# Script Asset Types
96
97
@@ -109,7 +110,7 @@ This will typically look like: `<script data-trunk src="{path}" ..other options
109
110
Trunk will copy script files found in the source HTML without content modification. This content is hashed for cache control. The `src` attribute must be included in the script pointing to the script file to be processed.
110
111
111
112
-`data-no-minify`: (optional) by default, scripts are minified in `--release` mode (unless building with `--no-minification`). Setting this attribute disables minification for that particular file. Defaults to false.
112
-
-`data-target-path`: (optional) Path where the directory is placed inside the dist dir. If not present the directory is placed in the dist root. The path must be a relative path without `..`.
113
+
-`data-target-path`: (optional) Path where the directory is placed inside the dist dir. If not present, the directory is placed in the dist root. The path must be a relative path without `..`.
0 commit comments