Skip to content

Commit

Permalink
fixed generation of index.js files
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherDosin committed Jun 28, 2021
1 parent 311dcfe commit bc2f4d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/GenerateCmsElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private function buildCmsElement(string $elementName, string $pluginName)
}

if (strpos($file->getFilename(), 'index')) {
file_put_contents($elementFolderPath . '/' . $type . '/sw-cms-el-'. $type . '-' . $elementName .'.js', $fileContent);
file_put_contents($elementFolderPath . '/' . $type . '/index.js', $fileContent);
}
}
}
Expand Down

0 comments on commit bc2f4d0

Please sign in to comment.