Open soniktrooth opened 6 years ago
But what about the CLI, how would that work?
It'd be awesome to have a command line option like --pageNotFound "./404.html"
, which would avoid the need to have to use a script. While the above works for those who are already scripting, many would lose the benefit of the CLI just because they need to handle 404.
We should add the ability to gracefully handle 404 pages.
Here is an exampe of how to do it with Browsersync:
Stolen gracefully from https://github.com/BrowserSync/browser-sync/issues/1398