From 2a851ea7a4cbdeac28dcc7d50ed083b17f99b659 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Mon, 6 May 2019 15:43:31 +0800 Subject: [PATCH] Replace deprecated `loaders` option with `use` (#6718) 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 38ee659ea98c..1f44fecf9fda 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, '../'), }, ],