Skip to content

Commit

Permalink
update script hash class in css
Browse files Browse the repository at this point in the history
  • Loading branch information
erwan committed Nov 6, 2024
1 parent 79bd90d commit 477fcac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/styles/config/plugins/vite-plugin-mangler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ export const cssPlugin = () => {
.replace(/(\.[a-z][_\-0-9a-z]*)(?=[^\{]*{)/gi, (match) => {
return `${match}__${HASH}`
})
.replace(/url\(\s*['"]?[^"')]*$/i, (match) => {
return match.split('_')[0]
})

.replace(/(url\(["']?.*?)(__[\w]+)(.*?["']?\))/g, '$1$3')
}
},
}
Expand Down

0 comments on commit 477fcac

Please sign in to comment.