webpack打包报错
Posted IT-nose
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了webpack打包报错相关的知识,希望对你有一定的参考价值。
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打包报错的主要内容,如果未能解决你的问题,请参考以下文章
webpack 打包压缩 ES6文件报错UglifyJs + Unexpected token punc «(», expected punc «:»(示例代码
关于Webpack打包报错Class constructor FileManager cannot be invoked witchout 'new'