options.json 1.4 KB
Newer Older
liang ce committed
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
{
  "additionalProperties": true,
  "properties": {
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "instanceof": "Function"
        }
      ]
    },
    "outputPath": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "instanceof": "Function"
        }
      ]
    },
    "publicPath": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "instanceof": "Function"
        }
      ]
    },
    "context": {
      "type": "string"
    },
    "emitFile": {
      "type": "boolean"
    },
    "regExp": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "instanceof": "RegExp"
        }
      ]
    }
  },
  "errorMessages": {
    "name": "should be {String} or {Function} (https://github.com/webpack-contrib/file-loader#name)",
    "outputPath": "should be {String} or {Function} (https://github.com/webpack-contrib/file-loader#outputpath)",
    "publicPath": "should be {String} or {Function} (https://github.com/webpack-contrib/file-loader#publicpath)",
    "context": "should be {String} (https://github.com/webpack-contrib/file-loader#context)",
    "emitFile": "should be {Boolean} (https://github.com/webpack-contrib/file-loader#emitfile)",
    "regExp": "should be {String} or {RegExp} (https://github.com/webpack-contrib/file-loader#regexp)"
  },
  "type": "object"
}