根据文档,cheap-module-source-map 对 production和development都是不适合的。跟老师推荐的方法不一致。
Special cases
The following options are not ideal for development nor production. They are needed for some special cases, i. e. for some 3rd party tools.
inline-source-map - A SourceMap is added as a DataUrl to the bundle.
cheap-source-map - A SourceMap without column-mappings ignoring loader Source Maps.
inline-cheap-source-map - Similar to cheap-source-map but SourceMap is added as a DataUrl to the bundle.
cheap-module-source-map - A SourceMap without column-mappings that simplifies loader Source Maps to a single mapping per line.
inline-cheap-module-source-map - Similar to cheap-module-source-map but SourceMap is added as a DataUrl to the bundle.