From bc2f4d082a06f1bb5e0067fc4c0048ce34fe4f08 Mon Sep 17 00:00:00 2001 From: Christopher Dosin Date: Mon, 28 Jun 2021 11:12:46 +0300 Subject: [PATCH] fixed generation of index.js files --- src/Command/GenerateCmsElement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/GenerateCmsElement.php b/src/Command/GenerateCmsElement.php index d37a004..b720a00 100644 --- a/src/Command/GenerateCmsElement.php +++ b/src/Command/GenerateCmsElement.php @@ -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); } } }