Releases: maizzle/framework
v4.4.4
Fixed
-
fixed an issue where selectors safelisted with
removeUnusedCSS.whitelist
were still being removed after they were inlined. To make sure that a selector that was inlined will not be removed from the HTML markup, you need to safelist it like this:// config.production.js module.exports = { // ... inlineCSS: true, removeUnusedCSS: { whitelist: ['.preserve-me'] // need the full CSS selector with leading dot etc., not just "preserve-me" }, }
-
fixed an issue where
removeInlinedSelectors
could not be disabled.You may now choose to not remove from the HTML any CSS classes that were inlined:
// config.production.js module.exports = { // ... inlineCSS: true, removeUnusedCSS: { removeInlinedSelectors: false, }, }
CSS will be inlined, but classes will not be removed from the elements or from
<style>
.
v4.4.3
v4.4.2
v4.4.1
Fixed
- fixed an issue where utilities in Templates inside directories with dots in their name (like
src/templates/test.com
) were not being generated
Changed
- add
{raw: html, extension: 'html'}
to Tailwind'scontent.files
only ifhtml
was passed to the Tailwind compiler - this happens/is needed only when using Maizzle programmatically, so we removed it for normal use cases
v4.4.0
🥳 v4.4.0
is here, bringing a new Components system, new Starter components, omit
/skip
, and tons of bugfixes!
New features
-
Blade-like Components system
We have a new, awesome Components system! It uses Blade-like syntax and comes with a lot of cool features, like slots, stacks, props, and more! Checkout the new Components documentation for more information.
-
Added new Starter Components: Spacer, Divider, Button
-
Added
shorthandCSS
as an alias forshorthandInlineCSS
#855 -
Added support for
config.cjs
files #873 -
Added support for
for
tag name in loops #902
Changed
- Updated the official Starter to use the new Components syntax
- Updated
tailwind.config.js
in the Starter to use types, so you now get autocompletion for config keys in your IDE - Improved build error message when you don't have a
build.templates.source
defined in the config #878 - Do not duplicate CSS properties to HTML attributes by default 6c36024
Fixed
- Fixed issue in
removeUnusedCSS
where some selectors were being purged even if they were a pseudo selector or part of a media query #853 - Fixed an issue with removing possibly inlined CSS selectors from the
<style>
tag #855 - Fixed an issue with CSS shorthand inconsistencies between inline CSS and CSS in
<style>
tag #855 - Fixed an issue where the string
undefined
was being prepended to VML src paths if you were using object syntax forbaseURL
#857 - Fixed an issue with
baseURL
defaults preventing URLs from being prepended, when it was configured as an object #877 - Fixed an issue where new data added to the config while the server is running were not always available when developing locally #886
- Fixed a bug where your custom Tailwind config object was not being used when rendering emails through the Maizzle API #890
- Fixed an issue where information about the current template was not being updated when developing locally #897
- Fixed an issue where an empty Tailwind CSS config was being used when developing locally #899, #900
- Fixed an issue where saving a template file while developing locally was outputting it in a wrong location #901
- Fixed an issue where
removeUnusedCSS
was running in local dev, even though it wasn't enabled in the config f105672 - Fixed an issue with Tailwind CSS
content
paths for Layouts and Components were removed if the user configuredcontent
as an array in theirtailwind.config.js
0641846 - Fixed specificity issue where you couldn't override an existing class because everything had
!important
d4e54da - Fixed an issue with the
permalink
Front Matter option not working 4e4f742
v4.4.0-beta.14
v4.4.0-beta.13
- fix: ensure
removeUnusedCSS
is opt in f105672
v4.4.0-beta.12
- added support for self-closing component tags, so you can do
<slot:template />
instead of<slot:template></slot:template>
- prevent duplicating any CSS props as HTML attributes
- updated some dependencies
v4.4.0-beta.11
- feat: add
for
as an alternative loop tag name 9d9d964 - updated dependencies