Set posthtml expression options
thewebartisan7 opened this issue · comments
Damir commented
When I try to add posthtml expression options then it fail:
options: {
plugins: [
require("posthtml-expressions")({
removeScriptLocals: true
}),
require("posthtml-extend")({
encoding: "utf8",
root: "./src/"
}),
],
},
Error:
ERROR in Error: Child compilation failed:
Module build failed (from ./node_modules/posthtml-loader/lib/index.js):
PostHTML Loader:
SyntaxError: Unexpected identifier
at node_modules/posthtml-loader/lib/index.js:158:10
ModuleBuildError: Module build failed (from ./node_modules/posthtml-loader/lib/index.js):