We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f744687 commit 981e911Copy full SHA for 981e911
1 file changed
src/cli.js
@@ -94,7 +94,7 @@ const processing = async file => {
94
95
makeDir(path.dirname(output))
96
.then(read.bind(undefined, file))
97
- .then(html => Promise.resolve(posthtml(plugins).process(html, config.options)))
+ .then(html => Promise.resolve(posthtml(plugins).process(html, {...config.options, from: file})))
98
.then(({html}) => {
99
fs.writeFile(output, html, error => {
100
if (error) {
0 commit comments