nl_tokens: Determine the default phantomJS module path . This is overridden by the phatomjs option .
pl_tokens: function ( ) { // If the path we're given by phantomjs is to a .cmd, it is pointing to a global copy. // Using the cmd as the process to execute causes problems cleaning up the processes // so we walk from the cmd to the phantomjs.exe and use that instead. var phantomSource = require ( "phantomjs-prebuilt" ) . path ; if ( path . extname ( phantomSource ) . toLowerCase ( ) === ".cmd" ) { return <mask> . join ( path . dirname ( phantomSource ) , "//node_modules//phantomjs-prebuilt//lib//phantom//bin//phantomjs.exe" ) ; } return phantomSource ; }