cannot find module css-loader while doing ng build -prod with angular-cli@1.0.0-beta.21

前端 未结 6 1390
逝去的感伤
逝去的感伤 2021-02-02 01:12

I have following package.json configuration

\"dependencies\": {
\"@angular/common\": \"2.2.1\",
\"@angular/compiler\": \"2.2.1\",
\"@angular/core\": \"2.2.1\",
\         


        
6条回答
  •  耶瑟儿~
    2021-02-02 01:53

    I have got the same issue as you. As a temporary solution I changed to 'ng build --dev'. Using this command the loader uses webpack-build-development.js instead of webpack-build-production.js and gets 'css-loader?sourcemap' instead of 'css-loader?sourcemap&minimize'.

提交回复
热议问题