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
I have a setup with this configuration:
import { resolve } from "path"; import handlebars from "vite-plugin-handlebars"; const pageData = { "/src/pages/index.html": { title: "Homepage" }, "/src/pages/subpage/index.html": { title: "Subpage" } }; const handlebarsOptions = { context(pagePath) { console.log("pagePath =", pagePath); return pageData[pagePath]; }, partialDirectory: resolve(__dirname, "src/pages/partials") }; export default { plugins: [handlebars(handlebarsOptions)] };
A codesandbox is here: https://codesandbox.io/s/vite-with-handlebars-61te7
As the terminal shows, the console.log does not pick up the current configuration.
console.log
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a setup with this configuration:
A codesandbox is here:
https://codesandbox.io/s/vite-with-handlebars-61te7
As the terminal shows, the
console.log
does not pick up the current configuration.What am I doing wrong?
The text was updated successfully, but these errors were encountered: