Opal-Estate-Pro/node_modules/browser-sync/dist/cli/transforms/appendServerDirectoryOption.js

12 lines
473 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function appendServerDirectoryOption(incoming) {
if (!incoming.get('server'))
return [incoming, []];
if (incoming.get('directory')) {
return [incoming.setIn(['server', 'directory'], incoming.has('directory')), []];
}
return [incoming, []];
}
exports.appendServerDirectoryOption = appendServerDirectoryOption;
//# sourceMappingURL=appendServerDirectoryOption.js.map