Use mini-css-extract-plugin to report ReferenceError: window is not defined

https://github.com/webpack-contrib/mini-css-extract-plugin/issues/173
 
Because of the conflict between style-loader and mini-CSs-extract – Plugin, the style-loader can be removed

Read More: