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