posthtml-expressions icon indicating copy to clipboard operation
posthtml-expressions copied to clipboard

removeScriptLocals doesn't work

Open marexx opened this issue 2 years ago • 0 comments

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?

marexx avatar Apr 19 '23 11:04 marexx