1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-18 18:36:07 +01:00
mkdocs-material/docs/schema/plugins/external/minify.json

77 lines
2.5 KiB
JSON
Raw Normal View History

2022-01-29 16:12:25 +01:00
{
"$schema": "https://json-schema.org/draft-07/schema",
2023-01-28 14:41:31 +01:00
"title": "Minify HTML, JavaScript and CSS during the build",
2022-01-29 16:12:25 +01:00
"type": "object",
"properties": {
"minify": {
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin",
"type": "object",
"dependencies": {
"minify_js": [
"js_files"
],
"minify_css": [
"css_files"
]
},
"properties": {
"minify_html": {
2022-01-29 18:19:42 +01:00
"title": "Minify HTML files",
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
"type": "boolean",
"default": true
2022-01-29 16:12:25 +01:00
},
"minify_js": {
2022-01-29 18:19:42 +01:00
"title": "Minify JavaScript files",
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
"type": "boolean",
"default": false
2022-01-29 16:12:25 +01:00
},
"minify_css": {
2022-01-29 18:19:42 +01:00
"title": "Minify CSS files",
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
"type": "boolean",
"default": false
2022-01-29 16:12:25 +01:00
},
"htmlmin_opts": {
2022-01-29 18:19:42 +01:00
"title": "Options for HTML minifier",
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
2022-01-29 16:12:25 +01:00
"type": "object"
},
"cache_safe": {
"title": "Add hash to Javascript and CSS file names",
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
"type": "boolean",
"default": false
},
2022-01-29 16:12:25 +01:00
"js_files": {
2022-01-29 18:19:42 +01:00
"title": "JavaScript files to minify",
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
2022-01-29 16:12:25 +01:00
"type": "array",
"items": {
2022-01-29 18:19:42 +01:00
"title": "Path to JavaScript file",
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
2022-01-29 16:12:25 +01:00
"pattern": "\\.js$"
},
"uniqueItems": true,
"minItems": 1
},
"css_files": {
2022-01-29 18:19:42 +01:00
"title": "CSS files to minify",
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
2022-01-29 16:12:25 +01:00
"type": "array",
"items": {
2022-01-29 18:19:42 +01:00
"title": "Path to CSS file",
"markdownDescription": "https://github.com/byrnereese/mkdocs-minify-plugin#options",
2022-01-29 16:12:25 +01:00
"pattern": "\\.css$"
},
"uniqueItems": true,
"minItems": 1
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}