|
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 暂时不清楚是否需要修改。
非常感谢做了这个工具,非常有用。
weapp-native/src/bin/transform.js
Line 477 in b70df82
在windows下,app.json里的pages路径类似:'pages\index\index',会导致报错。应该为'pages/index/index'
现在在上面代码位置上一行添加下面一行来解决。
类似的,还有引入modules目录下文件、components下文件。
变量ImportPages 、ImportComponents、ImportSources 等,ComponentRelations 暂时不清楚是否需要修改。
非常感谢做了这个工具,非常有用。