Skip to content

Commit

Permalink
add page-frame-like name for #34
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty472123 committed Apr 18, 2018
1 parent 35fa192 commit 0450c4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wuWxss.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ function doWxss(dir,cb){
frameFile=path.resolve(dir,"page-frame.html");
else if(fs.existsSync(path.resolve(dir,"app-wxss.js")))
frameFile=path.resolve(dir,"app-wxss.js");
else if(fs.existsSync(path.resolve(dir,"page-frame.js")))
frameFile=path.resolve(dir,"page-frame.js");
else throw Error("page-frame-like file is not found in the package by auto.");
wu.get(frameFile,code=>{
code=code.slice(code.indexOf('var setCssToHead = function(file, _xcInvalid) {'));
Expand Down

0 comments on commit 0450c4f

Please # to comment.