From 67cd32ba359af67dc3f60de980240d50fc6a4abe Mon Sep 17 00:00:00 2001 From: 2betop Date: Mon, 10 Aug 2015 14:54:43 +0800 Subject: [PATCH] fix https://github.com/fex-team/fis3/issues/142 --- lib/compile.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/compile.js b/lib/compile.js index d2b6d4148..87e925acf 100644 --- a/lib/compile.js +++ b/lib/compile.js @@ -668,8 +668,14 @@ function pipe(file, type, keep) { if (typeof processor === 'function') { var settings = {}; _.assign(settings, processor.defaultOptions || processor.options || {}); - _.assign(settings, fis.config.env().get('settings.' + key, {})); + _.assign(settings, fis.media().get('settings.' + key, {})); _.assign(settings, options || {}); + + // 删除隐藏配置 + delete settings.__name; + delete settings.__plugin; + delete settings.__pos; + callback(processor, settings, key); } else { fis.log.warning('invalid processor [modules.' + key + ']');