Symplify: [Statie] HTML files are silently removed from source subdirectory

Created on 20 Feb 2018  路  5Comments  路  Source: symplify/symplify

How to reproduce:

  • let there be /source/subdirectory/index.html
  • generate

Expected:

  • /output/subdirectory/index.html exists (like it works for example for /source/css/style.css)

Actual:

  • /output/subdirectory/index.html file is missing, other files (styles, images, js) are there
  • there is no notice or error message

All 5 comments

I see, thanks for clear example.

From top of my head, I would try add .html to static files here: https://github.com/Symplify/Symplify/blob/7d2b7a1945af09e38fb1e32183c45f6afc00f7dc/packages/Statie/src/FileSystem/FileFinder.php#L14

and remove from here: https://github.com/Symplify/Symplify/blob/7d2b7a1945af09e38fb1e32183c45f6afc00f7dc/packages/Statie/src/FileSystem/FileFinder.php#L69

*.html files should be static with no modification.

Btw, what exactly do you need this for? Gradual migration of plain-html website?

I have a static site for our wedding in the subdirectory, that does not need to be handled by statie.

:+1:

I've "found the digged dog" in the meantime :)

All files that end with "index.html" are moved to root as "index.html" and the last wins.

https://github.com/Symplify/Symplify/blob/da50836122abb9d47a500355f244c8fcc5b6275d/packages/Statie/src/Renderable/RouteFileDecorator.php#L73-L77

WIP

Thx

Was this page helpful?
0 / 5 - 0 ratings

Related issues

enumag picture enumag  路  8Comments

enumag picture enumag  路  6Comments

TomasVotruba picture TomasVotruba  路  3Comments

enumag picture enumag  路  8Comments

nunomaduro picture nunomaduro  路  8Comments