Skip to content

Commit

Permalink
5 bytes less
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Jan 16, 2025
1 parent 005f5b6 commit 54f690e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ async function generateInjectCSS(sourcePath) {
.replaceAll(/\s+/g, " ")
.replaceAll(/\s*([{},;:])\s*/g, "$1")

return `(function(){
var e = document.createElement('style')
return `(()=>{
let d = document
var e = d.createElement('style')
e.textContent = \`${minified}\`
document.head.appendChild(e)
d.head.appendChild(e)
})();`
}

Expand Down
2 changes: 1 addition & 1 deletion feincms3_cookiecontrol/static/f3cc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 54f690e

Please sign in to comment.