Plugin's resources for a multilingual book overridden unexpectedly
kakkun61 opened this issue · comments
Kazuki Okamoto commented
Summary
When a plugin give different resources for each language book on a multilingual book, only one set of resources is copied to _book, instead of all sets of ones.
- HonKit version: 3.7.4
Step to reproduce
- Prepare a multilingual book
- Use a plugin that returns different resources for each language book
- In this example “gitbook-plugin-add-js-css” is used
- Only last (?) resources are copied in a _book directory
- Link to code example: https://stackblitz.com/edit/honkit-template-4lsuer
Expected results
_book/gitbook/gitbook-plugin-add-js-css directory has three CSS files.
- (hashed)-style.css (contains
.root { --foo: black; }
) - (hashed)-style.css (contains
.root { --foo: green; }
) - (hashed)-style.css (contains
.root { --foo: red; }
)
Actual results
_book/gitbook/gitbook-plugin-add-js-css directory has only one CSS file.
- 8475660b37f194a88de481bf6c110409-style.css (contains
.root { --foo: black; }
)
azu commented
I agree that this is an odd behavior.
We would need to investigate whether this is a core or plugin issue.