错误
SyntaxError: Unexpected token (1:1)
at Parser.pp$4.raise (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:2825:15)
at Parser.pp.unexpected (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:689:10)
at Parser.pp$3.parseParenAndDistinguishExpression (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:2335:51)
at Parser.pp$3.parseExprAtom (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:2230:43)
at Parser.pp$3.parseExprSubscripts (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:2089:21)
at Parser.pp$3.parseMaybeUnary (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:2066:19)
at Parser.pp$3.parseExprOps (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:2010:21)
at Parser.pp$3.parseMaybeConditional (D:\fe-easy-platform\h5\rongyi_merchant_h5\node_modules\webpack\node_modules\acorn\dist\acorn.js:1993:21)
问题原因
webpack环境编辑使用的DOMAIN=''
,应该使用DOMAIN='""'
网友评论