Skip to content

Commit

Permalink
fix: remove timestamp from auto-generated css (close #327)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Jan 30, 2024
1 parent bfc548b commit 8952e8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/callout/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default class CalloutManager extends Component {
}
generateCssString() {
const sheet = [
`/* This snippet was auto-generated by the Admonitions plugin on ${new Date().toLocaleString()} */\n\n`
`/* This snippet was auto-generated by the Admonitions plugin */\n\n`
];
for (const rule of Array.from(this.sheet.cssRules)) {
sheet.push(rule.cssText);
Expand Down
8 changes: 8 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const config = {
onwarn: (warning, handler) => {
if (warning.code.toLowerCase().startsWith("a11y-")) {
return;
}
handler(warning);
}
};

0 comments on commit 8952e8e

Please sign in to comment.