-
Hi Maizzle community :-) I'm doing some edits on some markup that a previous developer did. And I wanted to run my code through Maizzle (what a fantastic tool) The preveious guy didn't use Maizzle - and used a classname called "container" in his markup. But when I build my templates, the Because I don't want to change the overall template in the project, I need my html to render this:
I've tried the following:
Is it possible? ps. i also reported this as a bug. Sorry for that. It is just a question. :-) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi there, you can do it with a couple changes to config files.
Now you can simply write Works in both v4.3.1 and the latest beta of Maizzle. |
Beta Was this translation helpful? Give feedback.
Hi there, you can do it with a couple changes to config files.
.container
is a class generated by Tailwind CSS, so you need to first disable it intailwind.config.js
:Next, you need to whitelist the
.container
class inremoveUnusedCSS
in yourconfig.production.js
, so that it isn't purged when you build for production:Now you can simply write
<table class="container">
and it will be preserved in the compiled HTML.Works in both v4.3.1 and the latest beta of Maizzle.