We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-u
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
If I want to use a locally defined plugin.js, this fails:
plugin.js
posthtml -u plugin.js -- foo.html
Error: Cannot find module 'plugin.js' ...
Adding local directory prefix ./ (like for require()) also fails:
./
require()
posthtml -u ./plugin.js -- foo.html
Error: Cannot find module './plugin.js' ...
However, an absolute path works just fine:
posthtml -u /Users/.../plugin.js -- foo.html
The file /Users/.../foo.html has been saved!
Consider resolving the plugin's module joining the fullpath to process.cwd() as a fallback, so that relative paths can work.
process.cwd()
The text was updated successfully, but these errors were encountered:
test: resolve local plugin, issue #336, #338
2a0cb7d
44d877b
No branches or pull requests
If I want to use a locally defined
plugin.js
, this fails:posthtml -u plugin.js -- foo.html
Adding local directory prefix
./
(like forrequire()
) also fails:posthtml -u ./plugin.js -- foo.html
However, an absolute path works just fine:
posthtml -u /Users/.../plugin.js -- foo.html
Consider resolving the plugin's module joining the fullpath to
process.cwd()
as a fallback, so that relative paths can work.The text was updated successfully, but these errors were encountered: