We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f185a3 commit 510be37Copy full SHA for 510be37
src/PatternLab/Builder.php
@@ -111,6 +111,12 @@ protected function generateAnnotations() {
111
*/
112
protected function generateIndex() {
113
114
+ // bomb if missing index.html
115
+ if (!file_exists(Config::getOption("publicDir")."/index.html")) {
116
+ $index = Console::getHumanReadablePath(Config::getOption("publicDir")).DIRECTORY_SEPARATOR."index.html";
117
+ Console::writeError("<path>".$index."</path> is missing. grab a copy from your StyleguideKit...");
118
+ }
119
+
120
// set-up the dispatcher
121
$dispatcherInstance = Dispatcher::getInstance();
122
0 commit comments