Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

1.1K
Vistas
How to add scss in an existing angular project

I use angular13.0.4 ,I want to update the css file to Scss . I tried different way but not get any success using that tricks , How to change css to scss in existing angular project.

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

In the latest version of Angular (v13), It's npm library migrating from css to scss and vice versa

ng add schematics-scss-migrate
over 4 years ago · Santiago Trujillo Denunciar

0

In an existing angular-cli project that was set up with the default css styles you will need to do a few things:

  1. Change the default style extension to scss Manually change in .angular-cli.json (Angular 5.x and older) or angular.json (Angular 6+) or run:

ng config defaults.styleExt=scss

if you get an error: Value cannot be found. use the command:

ng config schematics.@schematics/angular:component.styleext scss

(*source: Angular CLI SASS options)

  1. Rename your existing .css files to .scss (i.e. styles.css and app/app.component.css)

  2. Point the CLI to find styles.scss

Manually change the file extensions in apps[0].styles in angular.json

4.Point the components to find your new style files Change the styleUrls in your components to match your new file names

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda