Skip to content

Commit

Permalink
Merge pull request #695 from weekeight/issue_694
Browse files Browse the repository at this point in the history
fixes #694
  • Loading branch information
yiminghe committed Oct 20, 2014
2 parents d433f36 + 4d287b2 commit 818533d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,19 @@ function generateSeedJs() {
seedDebugJsContent += fs.readFileSync(debugFilePath).toString();
seedJsContent += fs.readFileSync(miniFilePath).toString();
}

seedDebugJsContent += getExtraContent();
seedJsContent += getExtraContent();

fs.writeFileSync(path.join(buildDir, 'seed-debug.js'), seedDebugJsContent + inferBaseCode);
fs.writeFileSync(path.join(buildDir, 'seed.js'), seedJsContent + inferBaseCode);
}

function getExtraContent(){
var kgConfigContent = '\nif( location !== undefined ){ modulex.config({ packages : { kg : { base : "//g.alicdn.com/kg/" } } }) }';
return kgConfigContent;
}

aggregateBower(bowerDir, buildDir);
generateSeedJs();

Expand Down

0 comments on commit 818533d

Please sign in to comment.