marp-team / marp-cli

A CLI interface for Marp and Marpit based converters
MIT License
1.85k stars 105 forks source link

--watch (and preview, server) discard custom separate style sheet after on live updates (style sheet is only considered correctly on first translation) #584

Open N3bukadne7ar opened 1 month ago

N3bukadne7ar commented 1 month ago

Version of Marp Tool

3.4.0

Operating System

Linux

Environment

marp-cli 3.4.0 marpit 3.0.0 npm 10.5.0 ubuntu 20.04

How to reproduce

  1. Unpack attached minimal example
  2. Start marp cli in preview mode with marp --html --preview --theme-set style/ -- presentation.md
  3. --> The slides are initially rendered with the correct custom style (Heading in Red)
  4. Make a change to presentation.md
  5. --> The preview window does not immediately update (!). This is unexpected.
  6. Refresh the preview window with F5
  7. --> The custom style is discarded, heading rendered in black (!). This is unexpected.

Expected behavior

Custom style always loaded correctly

Actual behavior

Custom stylesheet seemingly ignored for any updates in "preview", "watch" and "server" mode.

Additional information

minimal.zip

N3bukadne7ar commented 1 month ago

Some additional info: