Skip to content

在windows下,编译路径错误 #4

@JunQiGenYuan

Description

@JunQiGenYuan

const _json = isApp() || isGame() // 小程序配置

在windows下,app.json里的pages路径类似:'pages\index\index',会导致报错。应该为'pages/index/index'
现在在上面代码位置上一行添加下面一行来解决。

ImportPages.forEach(function(pathStr, i){y.splice(i,1,pathStr.replace(/\\/g, '/'));});

类似的,还有引入modules目录下文件、components下文件。
变量ImportPages 、ImportComponents、ImportSources 等,ComponentRelations 暂时不清楚是否需要修改。

非常感谢做了这个工具,非常有用。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions