Skip to content

Commit 981e911

Browse files
committed
perf: tree options from for plugins, #303
1 parent f744687 commit 981e911

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const processing = async file => {
9494

9595
makeDir(path.dirname(output))
9696
.then(read.bind(undefined, file))
97-
.then(html => Promise.resolve(posthtml(plugins).process(html, config.options)))
97+
.then(html => Promise.resolve(posthtml(plugins).process(html, {...config.options, from: file})))
9898
.then(({html}) => {
9999
fs.writeFile(output, html, error => {
100100
if (error) {

0 commit comments

Comments
 (0)