Skip to content

Commit

Permalink
fix(okam-build): fix not throw error when devSever not enabled in rep…
Browse files Browse the repository at this point in the history
…lacement processor
  • Loading branch information
wuhy committed Nov 4, 2018
1 parent 48e8bbe commit c6e6176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/okam-build/lib/processor/replacement.js
Expand Up @@ -39,7 +39,7 @@ function doReplacement(content, rules, file) {
}
else if (typeof item === 'object') {
let {match, replace} = item;
replace = strUtil.format(replace, tplData, true);
replace = strUtil.format(replace, tplData, false);
result = replaceContent(result, match, replace);
}
});
Expand All @@ -51,7 +51,7 @@ function doReplacement(content, rules, file) {
value = '' + value;
}

let replace = strUtil.format(value, tplData, true);
let replace = strUtil.format(value, tplData, false);
result = replaceContent(result, k, replace);
});
}
Expand Down

0 comments on commit c6e6176

Please sign in to comment.