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)) {