1 | {
|
2 | "title": "Sass Loader options",
|
3 | "type": "object",
|
4 | "properties": {
|
5 | "implementation": {
|
6 | "description": "The implementation of the sass to be used.",
|
7 | "link": "https://github.com/webpack-contrib/sass-loader#implementation",
|
8 | "anyOf": [
|
9 | {
|
10 | "type": "string"
|
11 | },
|
12 | {
|
13 | "type": "object"
|
14 | }
|
15 | ]
|
16 | },
|
17 | "api": {
|
18 | "description": "Switch between old and modern API for `sass` (`Dart Sass`) and `Sass Embedded` implementations.",
|
19 | "link": "https://github.com/webpack-contrib/sass-loader#sassoptions",
|
20 | "enum": ["legacy", "modern"]
|
21 | },
|
22 | "sassOptions": {
|
23 | "description": "Options for `node-sass` or `sass` (`Dart Sass`) implementation.",
|
24 | "link": "https://github.com/webpack-contrib/sass-loader#sassoptions",
|
25 | "anyOf": [
|
26 | {
|
27 | "type": "object",
|
28 | "additionalProperties": true
|
29 | },
|
30 | {
|
31 | "instanceof": "Function"
|
32 | }
|
33 | ]
|
34 | },
|
35 | "additionalData": {
|
36 | "description": "Prepends/Appends `Sass`/`SCSS` code before the actual entry file.",
|
37 | "link": "https://github.com/webpack-contrib/sass-loader#additionaldata",
|
38 | "anyOf": [
|
39 | {
|
40 | "type": "string"
|
41 | },
|
42 | {
|
43 | "instanceof": "Function"
|
44 | }
|
45 | ]
|
46 | },
|
47 | "sourceMap": {
|
48 | "description": "Enables/Disables generation of source maps.",
|
49 | "link": "https://github.com/webpack-contrib/sass-loader#sourcemap",
|
50 | "type": "boolean"
|
51 | },
|
52 | "webpackImporter": {
|
53 | "description": "Enables/Disables default `webpack` importer.",
|
54 | "link": "https://github.com/webpack-contrib/sass-loader#webpackimporter",
|
55 | "type": "boolean"
|
56 | },
|
57 | "warnRuleAsWarning": {
|
58 | "description": "Treats the '@warn' rule as a webpack warning.",
|
59 | "link": "https://github.com/webpack-contrib/sass-loader#warnruleaswarning",
|
60 | "type": "boolean"
|
61 | }
|
62 | },
|
63 | "additionalProperties": false
|
64 | }
|