Skip to content
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

removeScriptLocals doesn't work #148

Open
marexx opened this issue Apr 19, 2023 · 0 comments
Open

removeScriptLocals doesn't work #148

marexx opened this issue Apr 19, 2023 · 0 comments

Comments

@marexx
Copy link

marexx commented Apr 19, 2023

I tried to remove the script Locals, but that doesn't work:
module.exports = { root: "src/views", input: "**/*.html", output: "public", allInOutput: true, plugins: { "posthtml-expressions": { locals: { env : env, lang: "de", path: "/" }, removeScriptLocals: true },

this is what my locals look like
<script locals> module.exports = { story: locals.story || '' } </script>

did i miss something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant