diff --git a/lib/builder/builder.js b/lib/builder/builder.js index d531c22026..5eef0201fb 100644 --- a/lib/builder/builder.js +++ b/lib/builder/builder.js @@ -270,7 +270,7 @@ export default class Builder { })).forEach((f) => { const key = f.replace(/\.(js|vue)$/, '') if (/\.vue$/.test(f) || !files[key]) { - files[key] = f.replace(/(['|"])/g, '\\$1') + files[key] = f.replace(/('|")/g, '\\$1') } }) templateVars.router.routes = createRoutes(