webpack-dev-server报错

来源:2-1 建立项目的 webpack 配置文件

astros001

2018-07-20 09:52

× 「wds」: 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`).


写回答 关注

2回答

webpack深入与实战

webpack实战教程,用真实项目带你探索 webpack 强大的功能

86569 学习 · 721 问题

查看课程

相似问题