HerrHase 2 years ago
parent bbab557d8e
commit b213bf74ed

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

Loading…
Cancel
Save