Include 'normalize-scss' in Vue CLI 3

Modermo picture Modermo · Aug 12, 2018 · Viewed 10.5k times · Source

Just added the package normalize-scss to my new Vue project, but none of the styles are being applied... I've tried both:

@import 'normalize-scss' in my styles.scss

import 'normalize-scss' in my main.js page

Am I doing something wrong? The package is clearly there because the app runs, but it doesn't actually apply any css rules.

Answer

Modermo picture Modermo · Aug 13, 2018

I figured it out. You need to put the normalize() after you import it, in your main.scss file. So:

@import 'normalize-scss';
@include normalize();