webpack執(zhí)行時報錯,無效配置對象
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的文檔,里面有介紹