diff --git a/docs/src/pages/configurations/custom-webpack-config/index.md b/docs/src/pages/configurations/custom-webpack-config/index.md index 24146ec90de8..a205cbc3f5eb 100644 --- a/docs/src/pages/configurations/custom-webpack-config/index.md +++ b/docs/src/pages/configurations/custom-webpack-config/index.md @@ -188,7 +188,7 @@ module.exports = async ({ config, mode }) => { // Make whatever fine-grained changes you need config.module.rules.push({ test: /\.scss$/, - loaders: ['style-loader', 'css-loader', 'sass-loader'], + use: ['style-loader', 'css-loader', 'sass-loader'], include: path.resolve(__dirname, '../'), }); @@ -231,7 +231,7 @@ module.exports = { rules: [ { test: /\.scss$/, - loaders: ['style-loader', 'css-loader', 'sass-loader'], + use: ['style-loader', 'css-loader', 'sass-loader'], include: path.resolve(__dirname, '../'), }, ],