Skip to content

About the + appending to the folder name #108

Answered by kiliman
HuyAms asked this question in Q&A
Discussion options

You must be logged in to vote

The project folder should have a +, since it's nested, not colocated.

The reason it currently works is due to a bug where it treats interior / as though it were .. Only the final naked folder is treated as a colocated folder.

remix-flat-routes converts the route into the v2 flat routes convention before processing. This is to ensure that it will always be backwards compatible with the official Remix convention.

That is why routes/project/parent.child.grandchild/styles.css is treated as routes/project.parent.child.grandchild/styles.css and is considered a colocated file.

Since this bug is probably inadvertently depended on, once it's fixed I will add a config option to opt-in to it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HuyAms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants