options.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. "sassOptions": {
  18. "description": "Options for `node-sass` or `sass` (`Dart Sass`) implementation.",
  19. "link": "https://github.com/webpack-contrib/sass-loader#sassoptions",
  20. "anyOf": [
  21. {
  22. "type": "object",
  23. "additionalProperties": true
  24. },
  25. {
  26. "instanceof": "Function"
  27. }
  28. ]
  29. },
  30. "additionalData": {
  31. "description": "Prepends/Appends `Sass`/`SCSS` code before the actual entry file.",
  32. "link": "https://github.com/webpack-contrib/sass-loader#additionaldata",
  33. "anyOf": [
  34. {
  35. "type": "string"
  36. },
  37. {
  38. "instanceof": "Function"
  39. }
  40. ]
  41. },
  42. "sourceMap": {
  43. "description": "Enables/Disables generation of source maps.",
  44. "link": "https://github.com/webpack-contrib/sass-loader#sourcemap",
  45. "type": "boolean"
  46. },
  47. "webpackImporter": {
  48. "description": "Enables/Disables default `webpack` importer.",
  49. "link": "https://github.com/webpack-contrib/sass-loader#webpackimporter",
  50. "type": "boolean"
  51. },
  52. "warnRuleAsWarning": {
  53. "description": "Treats the '@warn' rule as a webpack warning.",
  54. "link": "https://github.com/webpack-contrib/sass-loader#warnruleaswarning",
  55. "type": "boolean"
  56. }
  57. },
  58. "additionalProperties": false
  59. }