From b213bf74eddb533805fed6843a7e1128372a6b18 Mon Sep 17 00:00:00 2001 From: HerrHase Date: Fri, 17 Mar 2023 13:52:07 +0100 Subject: [PATCH] adding #13 --- src/engines/helpers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engines/helpers.js b/src/engines/helpers.js index fa1fb59..883bf42 100644 --- a/src/engines/helpers.js +++ b/src/engines/helpers.js @@ -1,5 +1,6 @@ const path = require('path') const fs = require('fs') +const configStore = require('./../config.js') /** * asset - checks manifest.json for given path and return @@ -16,7 +17,7 @@ function asset(staticPath) { let result = staticPath // path to mix-manifest - const file = path.join(path.resolve()) + 'mix-manifest.json' + const file = path.join(configStore.get('destination')) + '/mix-manifest.json' if (fs.existsSync(file)) {