mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-27 06:05:52 +10:00
It also close #993 via including siteConfig.extendMarkdown & siteConfig.markdown.extendMarkdown to cacheIdentifier.
19 lines
284 B
JavaScript
19 lines
284 B
JavaScript
'use strict'
|
|
|
|
/**
|
|
* Module dependencies.
|
|
*/
|
|
|
|
const path = require('upath')
|
|
|
|
/**
|
|
* Normalize path request to absolute path.
|
|
*/
|
|
|
|
module.exports = function toAbsolutePath (raw, cwd = process.cwd()) {
|
|
if (path.isAbsolute(raw)) {
|
|
return raw
|
|
}
|
|
return path.resolve(cwd, raw)
|
|
}
|