From 4cfef5b0f80e6bd07db992ad2510502896e84ca5 Mon Sep 17 00:00:00 2001 From: "Manu [tennox]" <2084639+tennox@users.noreply.github.com> Date: Mon, 10 Oct 2022 13:54:32 +0100 Subject: [PATCH] #141 set config.filePath to view location This enables usage of with paths relative to the view file --- src/Process/MJML.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Process/MJML.php b/src/Process/MJML.php index fd62c89..c341311 100644 --- a/src/Process/MJML.php +++ b/src/Process/MJML.php @@ -53,6 +53,7 @@ public function buildCmdLineFromConfig() 'node', config('mjml.auto_detect_path') ? $this->detectBinaryPath() : config('mjml.path_to_binary'), $this->path, + '--config.filePath=' . dirname($this->view->getPath()), '-o', $this->compiledPath, ]);