|
|
@ -1,5 +1,6 @@
|
|
|
|
const path = require('path')
|
|
|
|
const path = require('path')
|
|
|
|
const fs = require('fs')
|
|
|
|
const fs = require('fs')
|
|
|
|
|
|
|
|
const configStore = require('./../config.js')
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* asset - checks manifest.json for given path and return
|
|
|
|
* asset - checks manifest.json for given path and return
|
|
|
@ -16,7 +17,7 @@ function asset(staticPath) {
|
|
|
|
let result = staticPath
|
|
|
|
let result = staticPath
|
|
|
|
|
|
|
|
|
|
|
|
// path to mix-manifest
|
|
|
|
// 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)) {
|
|
|
|
if (fs.existsSync(file)) {
|
|
|
|
|
|
|
|
|
|
|
|