Skip to content
Snippets Groups Projects

preserve `ti-fw` classes for icons - fixes #580

Merged dakkar requested to merge feature/580-fix-ti-fw into develop
1 file
+ 3
4
Compare changes
  • Side-by-side
  • Inline
@@ -5,10 +5,9 @@ function iconsReplace(opts: RollupReplaceOptions) {
return pluginReplace({
...opts,
preventAssignment: false,
// only replace these strings at the start of strings, remove a
// `ti-fw` it if happens to be just after, and make sure they're
// followed by a word-boundary that's not a dash
delimiters: ['(?<=["\'`])', '(?: ti-fw)?\\b(?!-)'],
// only replace these strings at the start of strings, and make
// sure they're followed by a word-boundary that's not a dash
delimiters: ['(?<=["\'`])', '\\b(?!-)'],
});
}
Loading