This pre-release:
-
Refactors
shorthandInlineCSS
so that it runs afterremoveUnusedCSS
. This was necessary because running it before lead to a situation where CSS in body no longer matched that in the head, resulting in stray classes left over. -
Adds consistency between shorthand inline CSS (in
style=""
attributes) and compiled Tailwind CSS (in<style>
tags).For example, like when you write custom CSS like
.padded { @apply px-4 py-2; }
.Compiled Tailwind CSS was always shorthanded as long as you were not developing locally (
env
would have beenlocal
, like when doingmaizzle build
), meaning it shortened it even when you didn't explicitly enableshorthandInlineCSS
. -
Adds support for
shorthandCSS
, so you can write that instead ofshorthandInlineCSS
. Both will work, but the newshorthandCSS
is clearer in terms of what it does when it's enabled (it shorthands CSS in bothstyle=""
attributes and in<style>
tags).