From e1817bad80723e17bf8f141315f212cc98709727 Mon Sep 17 00:00:00 2001 From: Ricardo Gobbo de Souza Date: Fri, 15 Feb 2019 16:35:03 -0200 Subject: [PATCH] fix(paths): support for windows paths --- lib/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/module.js b/lib/module.js index ec292ba..ab63b57 100644 --- a/lib/module.js +++ b/lib/module.js @@ -28,7 +28,7 @@ function routerModule(moduleOptions) { src: resolve(__dirname, 'plugin.js'), fileName: 'router.js', options: { - routerFilePath: relative(this.options.buildDir, routerFilePath).replace(/\/+/g, '/'), + routerFilePath: relative(this.options.buildDir, routerFilePath).replace(/\/\//g, '/'), keepDefaultRouter: options.keepDefaultRouter } })