报错一:
这种情况多半是拼写错误或是大小写问题。比如我把plugin的p整成了大写,server写成serve
Invalid configuration object. Webpack has been initialised using a configuration objectt does not match the API schema.
- configuration has an unknown property 'Plugins'. These properties are valid:
object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, external
infrastructureLogging?, loader?, mode?, module?, name?, node?, optimization?, output?, paralleli performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?solveLoader?, serve?, stats?, target?, watch?, watchOptions? }
For typos: please correct them.
For loader options: webpack >= v2.0.0 no longer allows custom properties in configuration.
Loaders should be updated to allow passing optio