You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using a wrapper for minify-html named django-minify-html but I am assuming this is a minify-html issue/question.
I just started using this and it's mostly working but its having an issue with some js:
this.isDarkMode = localStorage.getItem("theme") === 'dark'
gets converted to this:
this.isDarkMode=localStorage.getItem(a)===b
which then turns into this error when the page is loaded:
Alpine Expression Error: a is not defined
minify_js option is set to true. Setting it to false makes the error go away, as expected. But why is the js minify breaking the code?
Beta Was this translation helpful? Give feedback.
All reactions