You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-25
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@
18
18
<p>Loads a Sass/SCSS file and compiles it to CSS.</p>
19
19
</div>
20
20
21
-
Use the [css-loader](https://github.com/webpack-contrib/css-loader) or the [raw-loader](https://github.com/webpack-contrib/raw-loader) to turn it into a JS module and the [ExtractTextPlugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) to extract it into a separate file.
21
+
Use the [css-loader](https://github.com/webpack-contrib/css-loader) or the [raw-loader](https://github.com/webpack-contrib/raw-loader) to turn it into a JS module and the [MiniCssExtractPlugin](https://github.com/webpack-contrib/mini-css-extract-plugin) to extract it into a separate file.
22
22
Looking for the webpack 1 loader? Check out the [archive/webpack-1 branch](https://github.com/webpack-contrib/sass-loader/tree/archive/webpack-1).
23
23
24
24
<h2align="center">Install</h2>
@@ -45,13 +45,11 @@ module.exports = {
45
45
module: {
46
46
rules: [{
47
47
test:/\.scss$/,
48
-
use: [{
49
-
loader:"style-loader"// creates style nodes from JS strings
50
-
}, {
51
-
loader:"css-loader"// translates CSS into CommonJS
52
-
}, {
53
-
loader:"sass-loader"// compiles Sass to CSS
54
-
}]
48
+
use: [
49
+
"style-loader", // creates style nodes from JS strings
50
+
"css-loader", // translates CSS into CommonJS
51
+
"sass-loader"// compiles Sass to CSS
52
+
]
55
53
}]
56
54
}
57
55
};
@@ -85,34 +83,31 @@ See [node-sass](https://github.com/andrew/node-sass) for all available Sass opti
85
83
86
84
### In production
87
85
88
-
Usually, it's recommended to extract the style sheets into a dedicated file in production using the [ExtractTextPlugin](https://github.com/webpack-contrib/extract-text-webpack-plugin). This way your styles are not dependent on JavaScript:
86
+
Usually, it's recommended to extract the style sheets into a dedicated file in production using the [MiniCssExtractPlugin](https://github.com/webpack-contrib/mini-css-extract-plugin). This way your styles are not dependent on JavaScript:
0 commit comments