posthtml / posthtml-loader

PostHTML for Webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set posthtml expression options

thewebartisan7 opened this issue · comments

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):