webpack執(zhí)行時(shí)報(bào)錯(cuò),無(wú)效配置對(duì)象
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
?- configuration.module has an unknown property 'loaders'. These properties are valid:
?? object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, defaultRules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp?, strictExportPresence?, strictThisContextOnImports? }
?? -> Options affecting the normal modules (`NormalModuleFactory`).
2018-04-16
loaders已經(jīng)沒有了,改成rules了,建議看下webpack的文檔,里面有介紹