Skip to content
Permalink
Browse files

fix .static with electron. closes #69

  • Loading branch information...
juliangruber committed Dec 4, 2017
1 parent 2602ecc commit cf59fb04a5d38a6e284adbef805655a2cd5acc3a
Showing with 5,642 additions and 3 deletions.
  1. +0 −1 index.js
  2. +1 −1 lib/launch.js
  3. +5,625 −0 package-lock.json
  4. +1 −1 package.json
  5. +15 −0 test/static.js
@@ -43,7 +43,6 @@ function runner (opts) {
var mockHandler = opts.mock && require(path.resolve('./', opts.mock))

var server = http.createServer(function (req, res) {

if (opts.input === 'javascript') {
if (/^\/bundle\.js/.test(req.url)) {
res.setHeader('content-type', 'application/javascript');
@@ -7,7 +7,7 @@ module.exports = function(opts, cb){
var browser = Phantom();
browser.end('location = ' + JSON.stringify(opts.loc));
process.nextTick(cb.bind(null, null, browser));
} else if (/^electron/.test(opts.name)) {
} else if (/^electron/.test(opts.name)) {
var browser = Electron(opts);
if (opts.input === 'javascript') {
opts.bundle.createReadStream().pipe(browser);

0 comments on commit cf59fb0

Please sign in to comment.
You can’t perform that action at this time.