ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks
instead
报错原因是extract-text-webpack-plugin不支持webpack4
解决方式:
npm install extract-text-webpack-plugin@next --save-dev
然后在运行一下webpack就好了!