8000 Windows fix for local templates. (#120) · sibiyellow/vue-cli@e015d0f · GitHub
[go: up one dir, main page]

Skip to content

Commit e015d0f

Browse files
zigomiryyx990803
authored andcommitted
Windows fix for local templates. (vuejs#120)
No need to check for fowrad slash when checking if path is local.
1 parent 2e4ea85 commit e015d0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/vue-init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if (exists(to)) {
9090

9191
function run () {
9292
// check if template is local
93-
if (hasSlash && exists(template)) {
93+
if (exists(template)) {
9494
generate(name, template, to, function (err) {
9595
if (err) logger.fatal(err)
9696
console.log()

0 commit comments

Comments
 (0)
0