New features
Tailwind CSS JIT
You can now use the new Just-in-Time mode added in Tailwind v2.1.0.
To enable it, you must currently:
- enable it only for
maizzle serve
ormaizzle build
(and not for any other environment, because of tailwindlabs/tailwindcss#4071) - also specify the
purge
option in yourtailwind.config.js
, in simplified array syntax (it throws an error and Maizzle build hangs if you omit it or set it to an object, see tailwindlabs/tailwindcss#4094)
Example:
module.exports = {
mode: process.env.NODE_ENV === 'local' ? 'jit' : 'aot', // all `maizzle build` commands that specify an environment name will use 'aot'
purge: [
'src/**/*.*',
],
// ...
}
Fixed
- fixed an issue with template extension not being correctly used when developing locally (#423)