Skip to content

Commit dbbbee8

Browse files
committed
perf: resolve options in config
1 parent 80b70ff commit dbbbee8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/cfg-resolve.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import mergeOptions from 'merge-options';
44

55
export default ({input, flags = {}}) => {
66
const explorer = cosmiconfigSync('posthtml');
7-
let {config, use, output, root = './', allInOutput} = flags;
7+
let {config, use, options = {}, output, root = './', allInOutput} = flags;
88

99
if (config) {
1010
({config} = explorer.load(config));
@@ -21,6 +21,7 @@ export default ({input, flags = {}}) => {
2121
return mergeOptions(config || {}, {
2222
input,
2323
output,
24+
options,
2425
root,
2526
allInOutput
2627
}, use || {});

0 commit comments

Comments
 (0)