patrick-steele-idem / browser-refresh

Node.js module to enable server restart and browser refresh in response to file modifications
110 stars 18 forks source link

Arguments not being passed #29

Closed basickarl closed 8 years ago

basickarl commented 8 years ago
NODE_ENV=production browser-refresh app.js -r babel-register -r babel-polyfill

/home/karl/dev/sketch/experiment/socketio/app.js:12
import cluster from 'cluster';
^^^^^^
SyntaxError: Unexpected token import
NODE_ENV=production browser-refresh -r babel-register -r babel-polyfill app.js

module.js:442
    throw err;
    ^

Error: Cannot find module '/home/karl/dev/sketch/experiment/socketio/-r'

I'm guessing I can't pass these arguments? Under https://github.com/patrick-steele-idem/browser-refresh#usage states that I should be able to pass them, apparently not? Any ideas?