/
eb
/
Surf
Обзор
Документация
Войти
/
eb
/
Surf
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/browser-sync/dist/cli/transforms/addDefaultIgnorePatterns.js
29 строк
889 B
EvgeniyBudaev
Initial commit
17 фев 2020, 09:02
17 фев 2020, 09:02
bb6f06f
Код
Авторство
О чём код?
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var immutable_1 = require("immutable"); var defaultIgnorePatterns = [ /node_modules/, /bower_components/, '.sass-cache', '.vscode', '.git', '.idea', ]; function addDefaultIgnorePatterns(incoming) { if (!incoming.get("watch")) { return [incoming, []]; } var output = incoming.update("watchOptions", function (watchOptions) { var userIgnored = immutable_1.List([]) .concat(watchOptions.get("ignored")) .filter(Boolean) .toSet(); var merged = userIgnored.merge(defaultIgnorePatterns); return watchOptions.merge({ ignored: merged.toList(), }); }); return [output, []]; } exports.addDefaultIgnorePatterns = addDefaultIgnorePatterns; //# sourceMappingURL=addDefaultIgnorePatterns.js.map