From 5cafe01de0b84f6a0aa9f62787021e0690831309 Mon Sep 17 00:00:00 2001 From: Filipp Riabchun Date: Sun, 5 May 2019 17:00:11 +0200 Subject: [PATCH] Replace deprecated `loaders` option with `use` --- docs/src/pages/configurations/custom-webpack-config/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, '../'), }, ],