4-2 11:25秒處 babel的配置我按照老師寫(xiě)的報(bào)錯(cuò)
老師是這樣寫(xiě)的
但是報(bào)錯(cuò)了
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`).
后來(lái)看到官網(wǎng)是類似這樣寫(xiě)的
2018-03-12
webpack版本不一樣。老師那個(gè)版本是老古董了