Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

365
Views
Ionic2 - How to get a common / global SCSS file get compiled into build/main.css?

I have the following brand new project, created with:

$ ionic start MyIonic2Project sidemenu --v2

enter image description here

The content of the file: src/assets/css/style.scss is the following:

img.avatar {
    max-width: 100px;
    max-height: 100px;
    border-radius: 50%;
}

As you can see the above styles are embeded inside the html file, not in the file: build/main.css.

How do I get these styles inside the main.css file?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

try doing this:

Cut the below code where it locates

img.avatar {
max-width: 100px;
max-height: 100px;
border-radius: 50%;

}

and paste it into build/main.css file.

over 4 years ago · Santiago Trujillo Report

0

You must write in index.html , it is work

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!