style.js not generated in angular build

Viewed 31

I'm using the following to run my app with node v14.17.4 & npm v6.14.14

    "@angular/cdk": "^13.2.2",
    "@angular/common": "~13.1.0",
    "@angular/compiler": "~13.1.0",
    "@angular/core": "~13.1.0",
    "@angular/forms": "~13.1.0",
    "@angular/platform-browser": "~13.1.0",
    "@angular/platform-browser-dynamic": "~13.1.0",
    "@angular/router": "~13.1.0",
    "@angular-builders/custom-webpack": "13.0.0",
    "@angular-builders/dev-server": "^7.3.1",
    "@angular-devkit/build-angular": "~13.1.0",
    "@angular/cli": "13.0.4",
    "@angular/compiler-cli": "~13.1.0",
    "@angular/language-service": "~13.1.0",

While running the ng build it generates the dist folder but without the styles.js, which was working well with angular v8. Now I'm receiving the a CSP error Refused to load the script 'script-uri' because it violates the following Content Security Policy directive: "style-src 'unsafe-inline'". where the styles.css is not loaded enter image description here

Am I suppose to be adding the CSP headers anywhere explicitly?

0 Answers
Related