maizzle / framework

Quickly build HTML emails with Tailwind CSS.
https://maizzle.com
MIT License
1.24k stars 49 forks source link

[TailwindCSS JIT] `maizzle serve` creates *.undefined files for templates on save #435

Closed Xeevis closed 3 years ago

Xeevis commented 3 years ago

Maizzle Version: 3.4.0 TailwindCSS Version: 2.1.1 Node.js Version: 15.14.0

When running maizzle serve with TailwindCSS JIT mode, saving src/templates/promotional.html will generate build_local/promotional.undefined which contains the changes, but this won't update the page running on http://localhost:3000

mode: process.env.NODE_ENV === 'local' ? 'jit' : 'aot',
  purge: [
    'src/**/*.html',
  ],

image

cossssmin commented 3 years ago

Sorry about that, forgot to add a default extension when adding support for custom extensions in maizzle serve.

Fixed in v3.4.1.