Skip to content

Commit

Permalink
Replace deprecated loaders option with use (#6718)
Browse files Browse the repository at this point in the history
Replace deprecated `loaders` option with `use`
  • Loading branch information
shilman committed May 8, 2019
1 parent 5f3746f commit 2a851ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/configurations/custom-webpack-config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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, '../'),
});

Expand Down Expand Up @@ -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, '../'),
},
],
Expand Down

0 comments on commit 2a851ea

Please sign in to comment.