-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass options.from to plugins #303
Comments
@giuseppeg Hi, if you are using CLI then you just need to indicate const path = require('path');
const inputRoot = path.resolve(__dirname, 'src');
module.exports = {
input: `${inputRoot}/**/*.html`
} |
You can reopen the issue if I can help you with something in this matter. |
@Scrum I am using posthtml-cli and setting the Line 96 in 793a248
Every time we visit a file we should pass .then(html => Promise.resolve(posthtml(plugins).process(html, { ...config.options, from: file } ))) |
@giuseppeg Thanks for the find, it looks like a bug |
@Scrum thanks! It seems that you released a fix, how can I access |
Hi folks, is there a way to get the
options.from
passed to plugins when using posthtml-cli?The text was updated successfully, but these errors were encountered: