码迷,mamicode.com
首页 > Web开发 > 详细

webpack打包报错

时间:2018-04-17 11:34:41      阅读:1124      评论:0      收藏:0      [点我收藏+]

标签:image   分享图片   obj   imp   http   been   export   expr   webp   

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`).

  

解决方法:将module中的loaders替换为rules

技术分享图片

 

技术分享图片

 

webpack打包报错

标签:image   分享图片   obj   imp   http   been   export   expr   webp   

原文地址:https://www.cnblogs.com/detanx/p/webpackError.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!