我正在使用webpack来构建我的react组件,并尝试使用extract-text-webpack-plugin将我的css从我生成的js文件中分离出来。然而,当我尝试构建组件时,我得到了以下错误:Modulebuildfailed: ReferenceError: window is not defined。webpack.config.js文件如下所示:var ExtractTextPlugin = req
我用的是角5:错误:
10% building modules 4/6 modules 2 active ...ules/bootstrap/dist/css/bootstrap.css Unknown error from PostCSS plugin.69% building modules 768/771 modules 3 active ...ules/bootstrap/dist