2015-07-18 18:50:16 +00:00
|
|
|
// Switch to phantom.
|
|
|
|
// Example:
|
|
|
|
// gulp --phantom
|
|
|
|
|
2015-07-18 19:52:02 +00:00
|
|
|
var phantom = false;
|
2015-08-03 05:22:22 +00:00
|
|
|
process.argv.forEach(function(val, index, array) {
|
|
|
|
if (val === '--phantom') {
|
|
|
|
phantom = true;
|
|
|
|
}
|
2015-07-18 19:52:02 +00:00
|
|
|
});
|
2015-07-18 18:50:16 +00:00
|
|
|
|
2015-07-22 02:42:38 +00:00
|
|
|
console.log('Phantom:', phantom);
|
|
|
|
|
2015-07-18 18:50:16 +00:00
|
|
|
module.exports = phantom;
|