From 4f9718517cfcbd359f9b41e26494a5797a707cd3 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 2 Oct 2019 13:49:19 +0100 Subject: [PATCH] data is no longer a valid setting for scss loader prependData is now used to import your mixins, variables, etc. Please see https://webpack.js.org/loaders/sass-loader/#prependdata --- docs/guide/css.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guide/css.md b/docs/guide/css.md index db819bce8a..236da0ffb0 100644 --- a/docs/guide/css.md +++ b/docs/guide/css.md @@ -129,15 +129,15 @@ module.exports = { // @/ is an alias to src/ // so this assumes you have a file named `src/variables.sass` sass: { - data: `@import "~@/variables.sass"` + prependData: `@import "~@/variables.sass"` }, // by default the `sass` option will apply to both syntaxes // because `scss` syntax is also processed by sass-loader underlyingly - // but when configuring the `data` option + // but when configuring the `prependData` option // `scss` syntax requires an semicolon at the end of a statement, while `sass` syntax requires none // in that case, we can target the `scss` syntax separately using the `scss` option scss: { - data: `@import "~@/variables.scss";` + prependData: `@import "~@/variables.scss";` }, // pass Less.js Options to less-loader less:{