posthtml / posthtml-expressions

Use variables, JS-like expressions, and even markup-powered logic in your HTML.
Other
123 stars 20 forks source link

removeScriptLocals doesn't work #148

Open marexx opened 1 year ago

marexx commented 1 year ago

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?