设置 webpack.config.js文件错误
WebpackOptionsValidationError: 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 { defaultRules?, exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, strictExportPresence?, strictThisContextOnImports?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp? }
-> Options affecting the normal modules (`NormalModuleFactory`).
- configuration.resolve has an unknown property 'extentions'. These properties are valid:
object { alias?, aliasFields?, cachePredicate?, cacheWithContext?, concord?, descriptionFiles?, enforceExtension?, enforceModuleExtension?, extensions?, fileSystem?, mainFields?, mainFiles?, moduleExtensions?, modules?, plugins?, resolver?, symlinks?, unsafeCache?, useSyncFileSystemCalls? }
-> Options for the resolver
at webpack (F:\qianduan_dir\00program\JQuery\shudu\src\node_modules\webpack\lib\webpack.js:31:9)
at Stream.<anonymous> (F:\qianduan_dir\00program\JQuery\shudu\src\node_modules\webpack-stream\index.js:148:38)
at _end (F:\qianduan_dir\00program\JQuery\shudu\src\node_modules\through\index.js:65:9)
at Stream.stream.end (F:\qianduan_dir\00program\JQuery\shudu\src\node_modules\through\index.js:74:5)
at module.exports (F:\qianduan_dir\00program\JQuery\shudu\src\node_modules\webpack-stream\index.js:227:12)
at Gulp.gulp.task (F:\qianduan_dir\00program\JQuery\shudu\src\gulpfile.js:8:11)
at module.exports (F:\qianduan_dir\00program\JQuery\shudu\src\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (F:\qianduan_dir\00program\JQuery\shudu\src\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (F:\qianduan_dir\00program\JQuery\shudu\src\node_modules\orchestrator\index.js:214:10)
at Gulp.Orchestrator.start (F:\qianduan_dir\00program\JQuery\shudu\src\node_modules\orchestrator\index.js:134:8)