When I use styles: [...], Sass for Meteor won't compile it.
There are two solutions, both work:
create another file XXX.scss, and change to use styleUrls: ['XXX.scss']
use CSS instead of SCSS codes in styles: [...].
P.S. These days I met a lot of weird style problems, now it is all because
of this problem.
For example, SCSS supports // to comment, but CSS not. So when I
write codes in styles: [...], CSS codes before // work well, the
codes after // won't work. And I didn't get any error in
browser and my compiler.
Hope this can help people who met similar style problems.
Asked in February 2016Viewed 3,978 timesVoted 12Answered 1 times