New features
maizzle serve [env]
You can now tell Maizzle to build files for a specific environment when using the maizzle serve
CLI command.
This is basically the same as maizzle build [env]
and it will use your config.[env].js
file in the same way, the only difference is that is starts watching files with Browsersync and updates are automatically reflected in the browser:
$ maizzle serve production
√ Built 2 templates in 2111 ms.
[Browsersync] Access URLs:
--------------------------------------
Local: http://localhost:3000
External: http://192.168.1.190:3000
--------------------------------------
UI: http://localhost:3001
UI External: http://localhost:3001
--------------------------------------
[Browsersync] Serving files from: build_production
Notes
- this feature requires the latest version of the Maizzle CLI (at least
1.4.0
) - if you specify a production environment name (where you have enabled inlining and such in the corresponding config file), you will not have all the Tailwind classes generated in the output - meaning you cannot use the browser's developer tools to quickly add a class to an element
- making a change to a Template and saving it will rebuild just that template, just as you're used to with
maizzle serve