npm install sass-loader node-sass webpack --save-dev
Here is what the above code is Doing:
1. We’re importing the sass-loader, node-sass, and webpack.
2. We’re creating a new rule in the module.rules array.
3. We’re telling webpack that any time it sees a file ending in .scss, use the sass-loader to transform it to regular CSS.
4. We’re telling webpack to use the style-loader and css-loader for any files ending in .css.