8 lines
209 B
JavaScript
8 lines
209 B
JavaScript
|
|
const path = require('path')
|
||
|
|
|
||
|
|
module.exports = function getAssetPath (options, filePath, placeAtRootIfRelative) {
|
||
|
|
return options.assetsDir
|
||
|
|
? path.posix.join(options.assetsDir, filePath)
|
||
|
|
: filePath
|
||
|
|
}
|