问答详情
源自:1-3 项目结构及前端构建技术

gulp问题

在webpack.config.js按老师的内容写完后,我运行gulp并不能成功,提示是我

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

 - configuration.module has an unknown property 'loader'. These properties are valid:

   object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, defaultRules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp?, strictExportPresence?, strictThisContextOnImports? }


提问者:DUuSs 2018-07-26 15:38

个回答

  • 边城
    2018-08-21 15:39:47

    最新的代码在 Gitee 上(https://gitee.com/jamesfancy/sudoku ),已经修改为 gulp4 和 webpack4 了

  • __innocence
    2018-08-05 17:25:25

    主要是webpack版本的问题,要把loader换成rules

  • Stming
    2018-08-03 10:37:10

    同问。求解决

  • weibo_靜氺月_Mu_0
    2018-07-27 15:09:27

    配置webpack.config.js后不是该运行webpack么。