fix(storybook): fixing the static-dir issue (#9313)
This commit is contained in:
parent
0d6bdf523d
commit
dbbd7eff83
@ -83,16 +83,10 @@ SSL key to use for serving HTTPS.
|
||||
|
||||
Type: `array`
|
||||
|
||||
**Deprecated:** This field has been renamed to staticDirs.
|
||||
**Deprecated:** In Storybook 6.4 the `--static-dir` CLI flag has been replaced with the the `staticDirs` field in `.storybook/main.js`. It will be removed completely in Storybook 7.0.
|
||||
|
||||
Directory where to load static files from, array of strings
|
||||
|
||||
### staticDirs
|
||||
|
||||
Type: `array`
|
||||
|
||||
Directory where to load static files from, array of strings or object with from, to keys
|
||||
|
||||
### stylePreprocessorOptions.includePaths
|
||||
|
||||
Type: `array`
|
||||
|
||||
@ -50,19 +50,10 @@
|
||||
"staticDir": {
|
||||
"type": "array",
|
||||
"description": "Directory where to load static files from, array of strings",
|
||||
"default": [],
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-deprecated": "This field has been renamed to staticDirs."
|
||||
},
|
||||
"staticDirs": {
|
||||
"type": "array",
|
||||
"description": "Directory where to load static files from, array of strings or object with from, to keys",
|
||||
"default": [],
|
||||
"items": {
|
||||
"$ref": "#/definitions/staticDirPattern"
|
||||
}
|
||||
"x-deprecated": "In Storybook 6.4 the `--static-dir` CLI flag has been replaced with the the `staticDirs` field in `.storybook/main.js`. It will be removed completely in Storybook 7.0."
|
||||
},
|
||||
"projectBuildConfig": {
|
||||
"type": "string",
|
||||
@ -144,28 +135,6 @@
|
||||
"description": "The file to include."
|
||||
}
|
||||
]
|
||||
},
|
||||
"staticDirPattern": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"from": {
|
||||
"type": "string",
|
||||
"description": "From path"
|
||||
},
|
||||
"to": {
|
||||
"type": "string",
|
||||
"description": "To path"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": ["from", "to"]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": ["uiFramework", "config"]
|
||||
|
||||
@ -18,7 +18,6 @@ export interface StorybookExecutorOptions extends CommonNxStorybookConfig {
|
||||
sslCert?: string;
|
||||
sslKey?: string;
|
||||
staticDir?: string[];
|
||||
staticDirs?: string[] | { from: string; to: string }[];
|
||||
watch?: boolean;
|
||||
docsMode?: boolean;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user