UNPKG

webpack

Version:

Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.

54 lines (53 loc) 1.53 kB
{ "definitions": { "DataUrlFunction": { "description": "Function that executes for module and should return an DataUrl string.", "instanceof": "Function", "tsType": "((source: string | Buffer, context: { filename: string, module: import('../../lib/Module') }) => string)" }, "DataUrlOptions": { "description": "Options object for data url generation.", "type": "object", "additionalProperties": false, "properties": { "encoding": { "description": "Asset encoding (defaults to base64).", "enum": [false, "base64"] }, "mimetype": { "description": "Asset mimetype (getting from file extension by default).", "type": "string" } } } }, "title": "AssetModulesPluginGeneratorOptions", "type": "object", "additionalProperties": false, "properties": { "dataUrl": { "description": "The options for data url generator.", "anyOf": [ { "$ref": "#/definitions/DataUrlOptions" }, { "$ref": "#/definitions/DataUrlFunction" } ] }, "filename": { "description": "Template for asset filename.", "anyOf": [ { "type": "string", "absolutePath": false }, { "instanceof": "Function", "tsType": "((pathData: import(\"../../lib/Compilation\").PathData, assetInfo?: import(\"../../lib/Compilation\").AssetInfo) => string)" } ] } } }