Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No option to remove timestamp in generated files #250

Closed
epaul-imc opened this issue Dec 4, 2024 · 2 comments
Closed

No option to remove timestamp in generated files #250

epaul-imc opened this issue Dec 4, 2024 · 2 comments

Comments

@epaul-imc
Copy link

Hi,

I'm generating files but when I add a new icon and regenerate, I don't want to add the timestamp in any of the files.

Is there a way to do this ?

@jaywcjlove
Copy link
Owner

@epaul-imc Upgrade v6.2.0

/**
 * @type {import('svgtofont').SvgToFontOptions}
 */
export default {
  fontName: "iconfont",
  css: {
    //hasTimestamp: "v1.2.3"
    hasTimestamp: false
  }
}

svgtofont/src/utils.ts

Lines 283 to 288 in 8352115

/**
* When including CSS files in a CSS file,
* 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
* @example `path/to/iconfont.css?t=1612345678`
*/
hasTimestamp?: boolean | string;

jaywcjlove added a commit that referenced this issue Dec 5, 2024
github-actions bot pushed a commit that referenced this issue Dec 5, 2024
@epaul-imc
Copy link
Author

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants