hannoeru / vite-plugin-pages

File system based route generator for ⚡️Vite
MIT License
1.84k stars 127 forks source link

The field name "filePattern" in the config contains a spelling error. #418

Closed gjfLeo closed 1 year ago

gjfLeo commented 1 year ago

Description

According to the README document, the "filePattern" field can be used in the "dirs" field of the config. However, this field is incorrectly named as "filePatern", resulting in the setting being invalid.

(I think this is a bug, but it may be more appropriate to use the "proposal" template. )

Suggested solution

The correctly spelled "filePattern" field should be allowed to function properly. Considering compatibility issues, perhaps the misspelled "filePatern" should also remain valid.

Alternative

If "filePattern" is unable to function properly, the documentation should be amended.

Additional context

No response

Validations

hannoeru commented 1 year ago

Fixed https://github.com/hannoeru/vite-plugin-pages/commit/633f54c49604578c5901ccde4b0ae21dd7552826, will be released at v0.30.0.