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
* you can add a timestamp parameter or custom text to the file path to prevent browser caching issues and ensure style updates are applied. @defaulttrue
479
+
* @example`path/to/iconfont.css?t=1612345678`
480
+
*/
481
+
hasTimestamp?:boolean|string;
476
482
}
477
483
```
478
484
@@ -583,6 +589,7 @@ Allows you to provide your own logging function. Set to `function(){}` to
583
589
> Default value: `undefined`
584
590
585
591
Some options can be configured with `svgoOptions` though it. [svgo](https://github.com/svg/svgo#configuration)
592
+
586
593
### svg2ttf
587
594
588
595
This is the setting for [svg2ttf](https://github.com/fontello/svg2ttf/tree/c33a126920f46b030e8ce960cc7a0e38a6946bbc#svg2ttfsvgfontstring-options---buf)
Copy file name to clipboardexpand all lines: src/utils.ts
+11-4
Original file line number
Diff line number
Diff line change
@@ -280,6 +280,12 @@ export type CSSOptions = {
280
280
* Ad hoc template variables.
281
281
*/
282
282
templateVars?: Record<string,any>;
283
+
/**
284
+
* When including CSS files in a CSS file,
285
+
* you can add a timestamp parameter or custom text to the file path to prevent browser caching issues and ensure style updates are applied. @default true
286
+
* @example `path/to/iconfont.css?t=1612345678`
287
+
*/
288
+
hasTimestamp?: boolean|string;
283
289
}
284
290
285
291
// As we are processing css files, we need to eacape HTML entities.
0 commit comments