frostming / lektor-tailwind

A Lektor plugin that adds Tailwind CSS to your project seamlessly
MIT License
12 stars 3 forks source link

Tailwind fails if `lektor build` run from outside the Lektor project directory #4

Closed dairiki closed 10 months ago

dairiki commented 1 year ago

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.)

This fixes that.

dairiki commented 1 year ago

Note that I've just submitted PR #5, stacked on this one. Before a new release is made, make sure to finalize the fate of that PR as well.

dairiki commented 10 months ago

@frostming Any thoughts on this PR (and on #5)?