@diagonal-hq/cli 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -413,7 +413,7 @@ export default defineAssets({
|
|
|
413
413
|
});
|
|
414
414
|
```
|
|
415
415
|
|
|
416
|
-
Use `background: url(asset:hero)` in a CSS file. The hosted build replaces it with the version's delivery URL and records its verified digest in the deployment manifest. SVG and
|
|
416
|
+
Use `background: url(asset:hero)` in a CSS file. The hosted build replaces it with the version's delivery URL and records its verified digest in the deployment manifest. SVG, ICO, WOFF and WOFF2 files are Application Assets too. Use `@font-face { font-family: Brand; src: url(asset:brandFont) format('woff2'); }` in a CSS file. Asset keys match `^[a-z][A-Za-z0-9]*$`.
|
|
417
417
|
|
|
418
418
|
`diagonal check` validates this file offline. Each key must be a camelCase name of at most 64 letters and digits that starts with a lowercase letter, such as `hero`; otherwise the check reports `Asset key "<key>" must be a camelCase name ...` at the key. The manifest can have at most 500 entries. Each value must be `asset.version()` with one lower-case UUID string literal written without escapes. The default export must be `defineAssets({...})`. Other calls and non-literal expressions fail at their source location. The hosted build also checks that each version belongs to this application's asset library.
|
|
419
419
|
|