Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
Merge pull request #51 from seanchas116/electron-renderer
Browse files Browse the repository at this point in the history
Support electron-renderer
  • Loading branch information
jankanty authored Jan 8, 2017
2 parents beb2e63 + 3394d13 commit b434464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports.pitch = function(req) {
var source = [];
var query = loaderUtils.parseQuery(this.query);
query.ui = query.ui || 'bdd';
if(this.target == "web") {
if(this.target == "web" || this.target == "electron-renderer") {
source.push("require(" + JSON.stringify("!!" + path.join(__dirname, "web.js")) + ");");
source.push("if(typeof window !== 'undefined' && window.initMochaPhantomJS) { window.initMochaPhantomJS(); }");
source.push("mocha.setup(" + JSON.stringify(query) + ");");
Expand Down

0 comments on commit b434464

Please sign in to comment.