We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example:
inlineSource(path, { rootpath: 'fofdsafndsgnsfdlkjgfjndlksgjno' }) .then((html) => { // Do something with html console.log('html: ', html); }) .catch((err) => { console.log('err: ', err); // Handle error });
We pass it into the context but it doesn't look like anything happens with it:
const ctx = context.create(options); console.log('ctx: ', ctx.rootpath); // This has the correct path // Load html content if (isFilepath(htmlpath)) { ctx.htmlpath = path.resolve(htmlpath); try { ctx.html = ctx.fs.readFileSync(ctx.htmlpath, 'utf8'); } catch (err) { return reject(err); } // Passed file content instead of path } else { ctx.html = htmlpath; }
The text was updated successfully, but these errors were encountered:
rootpath is used to resolve relative src/rel from the html file content, not the actual path to the html file for processing.
rootpath
src/rel
Sorry, something went wrong.
Yes. But it does not change the path of the the Intended import file so the import fails as not found.
No branches or pull requests
Example:
We pass it into the context but it doesn't look like anything happens with it:
The text was updated successfully, but these errors were encountered: