mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
Fix template file path in windows
This commit is contained in:
parent
fa68b8b383
commit
9a915ba63e
@ -20,7 +20,12 @@ const r = function () {
|
|||||||
if (_.last(args).includes('~')) {
|
if (_.last(args).includes('~')) {
|
||||||
return _.last(args)
|
return _.last(args)
|
||||||
}
|
}
|
||||||
return resolve.apply(null, arguments)
|
|
||||||
|
let filepath = resolve.apply(null, arguments)
|
||||||
|
if (/^win/.test(process.platform)) {
|
||||||
|
filepath = filepath.replace(/\\/g, '\\\\')
|
||||||
|
}
|
||||||
|
return filepath
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaults = {
|
const defaults = {
|
||||||
|
Loading…
Reference in New Issue
Block a user