JohnAlbin / normalize-scss

This is the Sass version of Normalize.css, a collection of HTML element and attribute rulesets to normalize styles across all browsers.
https://github.com/JohnAlbin/normalize-scss#latest-versions
MIT License
1.44k stars 254 forks source link

@import "normalize" is not working #109

Closed RunningLat3 closed 7 years ago

RunningLat3 commented 7 years ago

I am using webpack and this is my code for sass-loader:

        {
            test: /\.scss$/,
            use: ExtractTextPlugin.extract({
                fallback: 'style-loader',
                use: [
                    {loader:'css-loader'}, 
                    { 
                        loader: 'sass-loader', 
                        options: {
                            includePaths: [
                                path.join(__dirname, 'node_modules/normalize-scss/sass')
                            ]
                        }
                    }
                ],
                publicPath: '../'                    
            })
        }//* sass loader

and app.scss:

@import "normalize" <-- this is not working

QUICK FIX I DID IS:

@import "normalize/import-now"

According to your documentation I only needed to do the first one, I am confuse on which is right to do.

Thanks

Garfield550 commented 7 years ago
@import 'normalize';
@include normalize();
JohnAlbin commented 7 years ago

As @Garfield550 pointed out, you missed one of the steps in the docs.

https://github.com/JohnAlbin/normalize-scss#how-to-use-it

codepandy commented 3 years ago

how to use it? it so hard to use!!!