mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-29 16:29:19 +02:00
undo bad thing
This commit is contained in:
+1
-6
@@ -23,12 +23,7 @@ function parsePluginConfig(filePath) {
|
|||||||
|
|
||||||
if (pluginConfig.frontEndPath) {
|
if (pluginConfig.frontEndPath) {
|
||||||
const sourcePath = path.join(path.dirname(filePath), pluginConfig.frontEndPath);
|
const sourcePath = path.join(path.dirname(filePath), pluginConfig.frontEndPath);
|
||||||
|
const destinationDir = path.join(__dirname, '../web/js/plugins', path.dirname(pluginConfig.frontEndPath));
|
||||||
const destinationDir = path.join(
|
|
||||||
__dirname,
|
|
||||||
'../web/js/plugins',
|
|
||||||
path.relative(pluginsDir, path.dirname(sourcePath))
|
|
||||||
);
|
|
||||||
|
|
||||||
// Check if the source path exists
|
// Check if the source path exists
|
||||||
if (!fs.existsSync(sourcePath)) {
|
if (!fs.existsSync(sourcePath)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user