Since relative paths are used to configure the content paths in tailwind.config.js, tailwind can not find the source content unless it is run from the Lektor project directory.
Lektor-tailwind currently fails to chdir to the Lektor project directory before running tailwind for lektor build. (It does chdir before running tailwind in watch mode for lektor server.)
Since relative paths are used to configure the
content
paths intailwind.config.js
, tailwind can not find the source content unless it is run from the Lektor project directory.Lektor-tailwind currently fails to chdir to the Lektor project directory before running tailwind for
lektor build
. (It does chdir before running tailwind in watch mode forlektor server
.)This fixes that.