@nx/webpack 22.7.0-beta.6 → 22.7.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets.json +21 -21
- package/executors.json +16 -16
- package/generators.json +27 -27
- package/migrations.json +42 -42
- package/package.json +5 -5
- package/src/executors/dev-server/schema.json +74 -74
- package/src/executors/ssr-dev-server/schema.json +35 -35
- package/src/executors/webpack/schema.json +435 -435
- package/src/generators/configuration/schema.json +74 -74
- package/src/generators/convert-config-to-webpack-plugin/schema.json +16 -16
- package/src/generators/convert-to-inferred/schema.json +16 -16
- package/src/generators/init/schema.json +30 -30
|
@@ -1,454 +1,454 @@
|
|
|
1
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
|
-
|
|
2
|
+
"version": 2,
|
|
3
|
+
"outputCapture": "direct-nodejs",
|
|
4
|
+
"title": "Webpack builder",
|
|
5
|
+
"description": "Build a project using webpack.",
|
|
6
|
+
"cli": "nx",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"crossOrigin": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The `crossorigin` attribute to use for generated javascript script tags. One of 'none' | 'anonymous' | 'use-credentials'."
|
|
12
|
+
},
|
|
13
|
+
"main": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "The name of the main entry-point file.",
|
|
16
|
+
"x-completion-type": "file",
|
|
17
|
+
"x-completion-glob": "**/*@(.js|.ts|.tsx)",
|
|
18
|
+
"x-priority": "important"
|
|
19
|
+
},
|
|
20
|
+
"tsConfig": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "The name of the Typescript configuration file.",
|
|
23
|
+
"x-completion-type": "file",
|
|
24
|
+
"x-completion-glob": "tsconfig.*.json",
|
|
25
|
+
"x-priority": "important"
|
|
26
|
+
},
|
|
27
|
+
"compiler": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "The compiler to use.",
|
|
30
|
+
"enum": ["babel", "swc", "tsc"]
|
|
31
|
+
},
|
|
32
|
+
"outputPath": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "The output path of the generated files.",
|
|
35
|
+
"x-completion-type": "directory",
|
|
36
|
+
"x-priority": "important"
|
|
37
|
+
},
|
|
38
|
+
"target": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"alias": "platform",
|
|
41
|
+
"description": "Target platform for the build, same as the Webpack target option.",
|
|
42
|
+
"enum": ["node", "web", "webworker"]
|
|
43
|
+
},
|
|
44
|
+
"watch": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"description": "Enable re-building when files change."
|
|
47
|
+
},
|
|
48
|
+
"cache": {
|
|
49
|
+
"description": "Configure webpack caching behavior. When not specified, defaults to `{ type: 'memory' }` for Node targets in watch mode, and `undefined` otherwise.",
|
|
50
|
+
"oneOf": [
|
|
51
|
+
{
|
|
52
|
+
"type": "boolean"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"type": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "The type of cache to use.",
|
|
60
|
+
"enum": ["memory", "filesystem"]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"additionalProperties": true
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"baseHref": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "Base url for the application being built."
|
|
70
|
+
},
|
|
71
|
+
"deployUrl": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "URL where the application will be deployed."
|
|
74
|
+
},
|
|
75
|
+
"vendorChunk": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"description": "Use a separate bundle containing only vendor libraries."
|
|
78
|
+
},
|
|
79
|
+
"commonChunk": {
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"description": "Use a separate bundle containing code used across multiple bundles."
|
|
82
|
+
},
|
|
83
|
+
"runtimeChunk": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"description": "Use a separate bundle containing the runtime."
|
|
86
|
+
},
|
|
87
|
+
"skipTypeChecking": {
|
|
88
|
+
"alias": "typeCheck",
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"description": "Skip the type checking. Default is `false`.",
|
|
91
|
+
"x-deprecated": "Use `typeCheckOptions` instead. This option will be removed in Nx 24."
|
|
92
|
+
},
|
|
93
|
+
"typeCheckOptions": {
|
|
94
|
+
"description": "Configure type checking during the build. Set to `true` to enable with defaults (async: true). Set to `false` to disable type checking entirely. Use `{ async: true }` to run type checking in a separate process without blocking the build. Default is `{ async: true }`.",
|
|
95
|
+
"oneOf": [
|
|
96
|
+
{
|
|
97
|
+
"type": "boolean"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "object",
|
|
101
|
+
"properties": {
|
|
102
|
+
"async": {
|
|
103
|
+
"type": "boolean",
|
|
104
|
+
"description": "Run type checking in a separate process without blocking the build.",
|
|
105
|
+
"default": true
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"additionalProperties": false
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"sourceMap": {
|
|
113
|
+
"description": "Output sourcemaps. Use 'hidden' for use with error reporting tools without generating sourcemap comment.",
|
|
114
|
+
"oneOf": [
|
|
115
|
+
{
|
|
116
|
+
"type": "boolean"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"type": "string"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"progress": {
|
|
124
|
+
"type": "boolean",
|
|
125
|
+
"description": "Log progress to the console while building."
|
|
126
|
+
},
|
|
127
|
+
"poll": {
|
|
128
|
+
"type": "number",
|
|
129
|
+
"description": "Enable and define the file watching poll time period."
|
|
130
|
+
},
|
|
131
|
+
"assets": {
|
|
132
|
+
"type": "array",
|
|
133
|
+
"description": "List of static application assets.",
|
|
134
|
+
"items": {
|
|
135
|
+
"$ref": "#/definitions/assetPattern"
|
|
61
136
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
"vendorChunk": {
|
|
76
|
-
"type": "boolean",
|
|
77
|
-
"description": "Use a separate bundle containing only vendor libraries."
|
|
78
|
-
},
|
|
79
|
-
"commonChunk": {
|
|
80
|
-
"type": "boolean",
|
|
81
|
-
"description": "Use a separate bundle containing code used across multiple bundles."
|
|
82
|
-
},
|
|
83
|
-
"runtimeChunk": {
|
|
84
|
-
"type": "boolean",
|
|
85
|
-
"description": "Use a separate bundle containing the runtime."
|
|
86
|
-
},
|
|
87
|
-
"skipTypeChecking": {
|
|
88
|
-
"alias": "typeCheck",
|
|
89
|
-
"type": "boolean",
|
|
90
|
-
"description": "Skip the type checking. Default is `false`.",
|
|
91
|
-
"x-deprecated": "Use `typeCheckOptions` instead. This option will be removed in Nx 24."
|
|
92
|
-
},
|
|
93
|
-
"typeCheckOptions": {
|
|
94
|
-
"description": "Configure type checking during the build. Set to `true` to enable with defaults (async: true). Set to `false` to disable type checking entirely. Use `{ async: true }` to run type checking in a separate process without blocking the build. Default is `{ async: true }`.",
|
|
95
|
-
"oneOf": [
|
|
96
|
-
{
|
|
97
|
-
"type": "boolean"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"type": "object",
|
|
101
|
-
"properties": {
|
|
102
|
-
"async": {
|
|
103
|
-
"type": "boolean",
|
|
104
|
-
"description": "Run type checking in a separate process without blocking the build.",
|
|
105
|
-
"default": true
|
|
137
|
+
},
|
|
138
|
+
"index": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"description": "HTML File which will be contain the application.",
|
|
141
|
+
"x-completion-type": "file",
|
|
142
|
+
"x-completion-glob": "**/*@(.html|.htm)"
|
|
143
|
+
},
|
|
144
|
+
"scripts": {
|
|
145
|
+
"type": "array",
|
|
146
|
+
"description": "External Scripts which will be included before the main application entry.",
|
|
147
|
+
"items": {
|
|
148
|
+
"$ref": "#/definitions/extraEntryPoint"
|
|
106
149
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
{
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
"$ref": "#/definitions/assetPattern"
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
"index": {
|
|
139
|
-
"type": "string",
|
|
140
|
-
"description": "HTML File which will be contain the application.",
|
|
141
|
-
"x-completion-type": "file",
|
|
142
|
-
"x-completion-glob": "**/*@(.html|.htm)"
|
|
143
|
-
},
|
|
144
|
-
"scripts": {
|
|
145
|
-
"type": "array",
|
|
146
|
-
"description": "External Scripts which will be included before the main application entry.",
|
|
147
|
-
"items": {
|
|
148
|
-
"$ref": "#/definitions/extraEntryPoint"
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
"styles": {
|
|
152
|
-
"type": "array",
|
|
153
|
-
"description": "External Styles which will be included with the application",
|
|
154
|
-
"items": {
|
|
155
|
-
"$ref": "#/definitions/extraEntryPoint"
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
"namedChunks": {
|
|
159
|
-
"type": "boolean",
|
|
160
|
-
"description": "Names the produced bundles according to their entry file."
|
|
161
|
-
},
|
|
162
|
-
"outputHashing": {
|
|
163
|
-
"type": "string",
|
|
164
|
-
"description": "Define the output filename cache-busting hashing mode.",
|
|
165
|
-
"enum": ["none", "all", "media", "bundles"]
|
|
166
|
-
},
|
|
167
|
-
"stylePreprocessorOptions": {
|
|
168
|
-
"description": "Options to pass to style preprocessors.",
|
|
169
|
-
"type": "object",
|
|
170
|
-
"properties": {
|
|
171
|
-
"includePaths": {
|
|
172
|
-
"description": "Paths to include. Paths will be resolved to project root.",
|
|
173
|
-
"type": "array",
|
|
174
|
-
"items": {
|
|
175
|
-
"type": "string"
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
"additionalProperties": false
|
|
180
|
-
},
|
|
181
|
-
"optimization": {
|
|
182
|
-
"description": "Enables optimization of the build output.",
|
|
183
|
-
"oneOf": [
|
|
184
|
-
{
|
|
185
|
-
"type": "object",
|
|
186
|
-
"properties": {
|
|
187
|
-
"scripts": {
|
|
188
|
-
"type": "boolean",
|
|
189
|
-
"description": "Enables optimization of the scripts output.",
|
|
190
|
-
"default": true
|
|
150
|
+
},
|
|
151
|
+
"styles": {
|
|
152
|
+
"type": "array",
|
|
153
|
+
"description": "External Styles which will be included with the application",
|
|
154
|
+
"items": {
|
|
155
|
+
"$ref": "#/definitions/extraEntryPoint"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"namedChunks": {
|
|
159
|
+
"type": "boolean",
|
|
160
|
+
"description": "Names the produced bundles according to their entry file."
|
|
161
|
+
},
|
|
162
|
+
"outputHashing": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"description": "Define the output filename cache-busting hashing mode.",
|
|
165
|
+
"enum": ["none", "all", "media", "bundles"]
|
|
166
|
+
},
|
|
167
|
+
"stylePreprocessorOptions": {
|
|
168
|
+
"description": "Options to pass to style preprocessors.",
|
|
169
|
+
"type": "object",
|
|
170
|
+
"properties": {
|
|
171
|
+
"includePaths": {
|
|
172
|
+
"description": "Paths to include. Paths will be resolved to project root.",
|
|
173
|
+
"type": "array",
|
|
174
|
+
"items": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
191
178
|
},
|
|
192
|
-
"
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
179
|
+
"additionalProperties": false
|
|
180
|
+
},
|
|
181
|
+
"optimization": {
|
|
182
|
+
"description": "Enables optimization of the build output.",
|
|
183
|
+
"oneOf": [
|
|
184
|
+
{
|
|
185
|
+
"type": "object",
|
|
186
|
+
"properties": {
|
|
187
|
+
"scripts": {
|
|
188
|
+
"type": "boolean",
|
|
189
|
+
"description": "Enables optimization of the scripts output.",
|
|
190
|
+
"default": true
|
|
191
|
+
},
|
|
192
|
+
"styles": {
|
|
193
|
+
"type": "boolean",
|
|
194
|
+
"description": "Enables optimization of the styles output.",
|
|
195
|
+
"default": true
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"additionalProperties": false
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"type": "boolean"
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"generatePackageJson": {
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"description": "Generates a `package.json` and pruned lock file with the project's `node_module` dependencies populated for installing in a container. If a `package.json` exists in the project's directory, it will be reused with dependencies populated."
|
|
208
|
+
},
|
|
209
|
+
"skipOverrides": {
|
|
210
|
+
"type": "boolean",
|
|
211
|
+
"description": "Do not add a `overrides` and `resolutions` entries to the generated package.json file. Only works in conjunction with `generatePackageJson` option."
|
|
212
|
+
},
|
|
213
|
+
"skipPackageManager": {
|
|
214
|
+
"type": "boolean",
|
|
215
|
+
"description": "Do not add a `packageManager` entry to the generated package.json file. Only works in conjunction with `generatePackageJson` option."
|
|
216
|
+
},
|
|
217
|
+
"transformers": {
|
|
218
|
+
"type": "array",
|
|
219
|
+
"description": "List of TypeScript Compiler Transfomers Plugins.",
|
|
220
|
+
"aliases": ["tsPlugins"],
|
|
221
|
+
"items": {
|
|
222
|
+
"$ref": "#/definitions/transformerPattern"
|
|
196
223
|
}
|
|
197
|
-
},
|
|
198
|
-
"additionalProperties": false
|
|
199
224
|
},
|
|
200
|
-
{
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
"description": "List of TypeScript Compiler Transfomers Plugins.",
|
|
220
|
-
"aliases": ["tsPlugins"],
|
|
221
|
-
"items": {
|
|
222
|
-
"$ref": "#/definitions/transformerPattern"
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
"additionalEntryPoints": {
|
|
226
|
-
"type": "array",
|
|
227
|
-
"items": {
|
|
228
|
-
"type": "object",
|
|
229
|
-
"properties": {
|
|
230
|
-
"entryName": {
|
|
225
|
+
"additionalEntryPoints": {
|
|
226
|
+
"type": "array",
|
|
227
|
+
"items": {
|
|
228
|
+
"type": "object",
|
|
229
|
+
"properties": {
|
|
230
|
+
"entryName": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"description": "Name of the additional entry file."
|
|
233
|
+
},
|
|
234
|
+
"entryPath": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"description": "Path to the additional entry file.",
|
|
237
|
+
"x-completion-type": "file",
|
|
238
|
+
"x-completion-glob": "**/*@(.js|.ts)"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"outputFileName": {
|
|
231
244
|
"type": "string",
|
|
232
|
-
"description": "Name of the
|
|
233
|
-
|
|
234
|
-
|
|
245
|
+
"description": "Name of the main output file.",
|
|
246
|
+
"default": "main.js"
|
|
247
|
+
},
|
|
248
|
+
"externalDependencies": {
|
|
249
|
+
"oneOf": [
|
|
250
|
+
{
|
|
251
|
+
"type": "string",
|
|
252
|
+
"enum": ["none", "all"]
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"type": "array",
|
|
256
|
+
"items": {
|
|
257
|
+
"type": "string"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"description": "Dependencies to keep external to the bundle. (`all` (default), `none`, or an array of module names)"
|
|
262
|
+
},
|
|
263
|
+
"extractCss": {
|
|
264
|
+
"type": "boolean",
|
|
265
|
+
"description": "Extract CSS into a `.css` file."
|
|
266
|
+
},
|
|
267
|
+
"subresourceIntegrity": {
|
|
268
|
+
"type": "boolean",
|
|
269
|
+
"description": "Enables the use of subresource integrity validation."
|
|
270
|
+
},
|
|
271
|
+
"polyfills": {
|
|
235
272
|
"type": "string",
|
|
236
|
-
"description": "
|
|
273
|
+
"description": "Polyfills to load before application",
|
|
237
274
|
"x-completion-type": "file",
|
|
238
|
-
"x-completion-glob": "**/*@(.js|.ts)"
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
"
|
|
258
|
-
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
"
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
"description": "Extract all licenses in a separate file, in the case of production builds only."
|
|
300
|
-
},
|
|
301
|
-
"memoryLimit": {
|
|
302
|
-
"type": "number",
|
|
303
|
-
"description": "Memory limit for type checking service process in `MB`."
|
|
304
|
-
},
|
|
305
|
-
"fileReplacements": {
|
|
306
|
-
"description": "Replace files with other files in the build.",
|
|
307
|
-
"type": "array",
|
|
308
|
-
"items": {
|
|
309
|
-
"type": "object",
|
|
310
|
-
"properties": {
|
|
311
|
-
"replace": {
|
|
275
|
+
"x-completion-glob": "**/*@(.js|.ts|.tsx)"
|
|
276
|
+
},
|
|
277
|
+
"verbose": {
|
|
278
|
+
"type": "boolean",
|
|
279
|
+
"description": "Emits verbose output"
|
|
280
|
+
},
|
|
281
|
+
"statsJson": {
|
|
282
|
+
"type": "boolean",
|
|
283
|
+
"description": "Generates a 'stats.json' file which can be analyzed using tools such as: 'webpack-bundle-analyzer' or `<https://webpack.github.io/analyse>`."
|
|
284
|
+
},
|
|
285
|
+
"runtimeDependencies": {
|
|
286
|
+
"description": "Add runtime dependencies to the generated `package.json` file. Useful for Docker install.",
|
|
287
|
+
"type": "array",
|
|
288
|
+
"items": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"standardWebpackConfigFunction": {
|
|
293
|
+
"type": "boolean",
|
|
294
|
+
"description": "Set to true if the webpack config exports a standard webpack function, not an Nx-specific one. See: https://webpack.js.org/configuration/configuration-types/#exporting-a-function",
|
|
295
|
+
"default": false
|
|
296
|
+
},
|
|
297
|
+
"extractLicenses": {
|
|
298
|
+
"type": "boolean",
|
|
299
|
+
"description": "Extract all licenses in a separate file, in the case of production builds only."
|
|
300
|
+
},
|
|
301
|
+
"memoryLimit": {
|
|
302
|
+
"type": "number",
|
|
303
|
+
"description": "Memory limit for type checking service process in `MB`."
|
|
304
|
+
},
|
|
305
|
+
"fileReplacements": {
|
|
306
|
+
"description": "Replace files with other files in the build.",
|
|
307
|
+
"type": "array",
|
|
308
|
+
"items": {
|
|
309
|
+
"type": "object",
|
|
310
|
+
"properties": {
|
|
311
|
+
"replace": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"description": "The file to be replaced.",
|
|
314
|
+
"x-completion-type": "file"
|
|
315
|
+
},
|
|
316
|
+
"with": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"description": "The file to replace with.",
|
|
319
|
+
"x-completion-type": "file"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"additionalProperties": false,
|
|
323
|
+
"required": ["replace", "with"]
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"buildLibsFromSource": {
|
|
327
|
+
"type": "boolean",
|
|
328
|
+
"description": "Read buildable libraries from source instead of building them separately. If set to `false`, the `tsConfig` option must also be set to remap paths.",
|
|
329
|
+
"default": true
|
|
330
|
+
},
|
|
331
|
+
"generateIndexHtml": {
|
|
332
|
+
"type": "boolean",
|
|
333
|
+
"description": "Generates `index.html` file to the output path. This can be turned off if using a webpack plugin to generate HTML such as `html-webpack-plugin`."
|
|
334
|
+
},
|
|
335
|
+
"postcssConfig": {
|
|
312
336
|
"type": "string",
|
|
313
|
-
"description": "
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
"with": {
|
|
337
|
+
"description": "Set a path to PostCSS config that applies to the app and all libs. Defaults to `undefined`, which auto-detects postcss.config.js files in each `app`/`lib` directory."
|
|
338
|
+
},
|
|
339
|
+
"webpackConfig": {
|
|
317
340
|
"type": "string",
|
|
318
|
-
"description": "
|
|
341
|
+
"description": "Path to a function which takes a webpack config, some context and returns the resulting webpack config. See https://nx.dev/guides/customize-webpack",
|
|
342
|
+
"x-completion-type": "file",
|
|
343
|
+
"x-completion-glob": "webpack?(*)@(.js|.ts)",
|
|
344
|
+
"x-priority": "important"
|
|
345
|
+
},
|
|
346
|
+
"babelUpwardRootMode": {
|
|
347
|
+
"type": "boolean",
|
|
348
|
+
"description": "Whether to set rootmode to upward. See https://babeljs.io/docs/en/options#rootmode"
|
|
349
|
+
},
|
|
350
|
+
"babelConfig": {
|
|
351
|
+
"type": "string",
|
|
352
|
+
"description": "Path to the babel configuration file of your project. If not provided, Nx will default to the .babelrc file at the root of your project. See https://babeljs.io/docs/en/config-files",
|
|
319
353
|
"x-completion-type": "file"
|
|
320
|
-
}
|
|
321
354
|
},
|
|
322
|
-
"
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
},
|
|
326
|
-
"buildLibsFromSource": {
|
|
327
|
-
"type": "boolean",
|
|
328
|
-
"description": "Read buildable libraries from source instead of building them separately. If set to `false`, the `tsConfig` option must also be set to remap paths.",
|
|
329
|
-
"default": true
|
|
330
|
-
},
|
|
331
|
-
"generateIndexHtml": {
|
|
332
|
-
"type": "boolean",
|
|
333
|
-
"description": "Generates `index.html` file to the output path. This can be turned off if using a webpack plugin to generate HTML such as `html-webpack-plugin`."
|
|
334
|
-
},
|
|
335
|
-
"postcssConfig": {
|
|
336
|
-
"type": "string",
|
|
337
|
-
"description": "Set a path to PostCSS config that applies to the app and all libs. Defaults to `undefined`, which auto-detects postcss.config.js files in each `app`/`lib` directory."
|
|
338
|
-
},
|
|
339
|
-
"webpackConfig": {
|
|
340
|
-
"type": "string",
|
|
341
|
-
"description": "Path to a function which takes a webpack config, some context and returns the resulting webpack config. See https://nx.dev/guides/customize-webpack",
|
|
342
|
-
"x-completion-type": "file",
|
|
343
|
-
"x-completion-glob": "webpack?(*)@(.js|.ts)",
|
|
344
|
-
"x-priority": "important"
|
|
345
|
-
},
|
|
346
|
-
"babelUpwardRootMode": {
|
|
347
|
-
"type": "boolean",
|
|
348
|
-
"description": "Whether to set rootmode to upward. See https://babeljs.io/docs/en/options#rootmode"
|
|
349
|
-
},
|
|
350
|
-
"babelConfig": {
|
|
351
|
-
"type": "string",
|
|
352
|
-
"description": "Path to the babel configuration file of your project. If not provided, Nx will default to the .babelrc file at the root of your project. See https://babeljs.io/docs/en/config-files",
|
|
353
|
-
"x-completion-type": "file"
|
|
354
|
-
},
|
|
355
|
-
"publicPath": {
|
|
356
|
-
"type": "string",
|
|
357
|
-
"description": "Set a public path for assets resources with absolute paths."
|
|
358
|
-
},
|
|
359
|
-
"rebaseRootRelative": {
|
|
360
|
-
"type": "boolean",
|
|
361
|
-
"description": "Whether to rebase absolute path for assets in postcss cli resources."
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
"required": [],
|
|
365
|
-
"definitions": {
|
|
366
|
-
"assetPattern": {
|
|
367
|
-
"oneOf": [
|
|
368
|
-
{
|
|
369
|
-
"type": "object",
|
|
370
|
-
"properties": {
|
|
371
|
-
"glob": {
|
|
372
|
-
"type": "string",
|
|
373
|
-
"description": "The pattern to match."
|
|
374
|
-
},
|
|
375
|
-
"input": {
|
|
376
|
-
"type": "string",
|
|
377
|
-
"description": "The input directory path in which to apply 'glob'. Defaults to the project root."
|
|
378
|
-
},
|
|
379
|
-
"ignore": {
|
|
380
|
-
"description": "An array of globs to ignore.",
|
|
381
|
-
"type": "array",
|
|
382
|
-
"items": {
|
|
383
|
-
"type": "string"
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
"output": {
|
|
387
|
-
"type": "string",
|
|
388
|
-
"description": "Absolute path within the output."
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
"additionalProperties": false,
|
|
392
|
-
"required": ["glob", "input", "output"]
|
|
355
|
+
"publicPath": {
|
|
356
|
+
"type": "string",
|
|
357
|
+
"description": "Set a public path for assets resources with absolute paths."
|
|
393
358
|
},
|
|
394
|
-
{
|
|
395
|
-
|
|
359
|
+
"rebaseRootRelative": {
|
|
360
|
+
"type": "boolean",
|
|
361
|
+
"description": "Whether to rebase absolute path for assets in postcss cli resources."
|
|
396
362
|
}
|
|
397
|
-
]
|
|
398
363
|
},
|
|
399
|
-
"
|
|
400
|
-
|
|
401
|
-
{
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
364
|
+
"required": [],
|
|
365
|
+
"definitions": {
|
|
366
|
+
"assetPattern": {
|
|
367
|
+
"oneOf": [
|
|
368
|
+
{
|
|
369
|
+
"type": "object",
|
|
370
|
+
"properties": {
|
|
371
|
+
"glob": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"description": "The pattern to match."
|
|
374
|
+
},
|
|
375
|
+
"input": {
|
|
376
|
+
"type": "string",
|
|
377
|
+
"description": "The input directory path in which to apply 'glob'. Defaults to the project root."
|
|
378
|
+
},
|
|
379
|
+
"ignore": {
|
|
380
|
+
"description": "An array of globs to ignore.",
|
|
381
|
+
"type": "array",
|
|
382
|
+
"items": {
|
|
383
|
+
"type": "string"
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"output": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"description": "Absolute path within the output."
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"additionalProperties": false,
|
|
392
|
+
"required": ["glob", "input", "output"]
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"type": "string"
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
"extraEntryPoint": {
|
|
400
|
+
"oneOf": [
|
|
401
|
+
{
|
|
402
|
+
"type": "object",
|
|
403
|
+
"properties": {
|
|
404
|
+
"input": {
|
|
405
|
+
"type": "string",
|
|
406
|
+
"description": "The file to include.",
|
|
407
|
+
"x-completion-type": "file",
|
|
408
|
+
"x-completion-glob": "**/*@(.css|.scss|.less|.sass)"
|
|
409
|
+
},
|
|
410
|
+
"bundleName": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"description": "The bundle name for this extra entry point."
|
|
413
|
+
},
|
|
414
|
+
"inject": {
|
|
415
|
+
"type": "boolean",
|
|
416
|
+
"description": "If the bundle will be referenced in the HTML file.",
|
|
417
|
+
"default": true
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"additionalProperties": false,
|
|
421
|
+
"required": ["input"]
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"type": "string",
|
|
425
|
+
"description": "The file to include.",
|
|
426
|
+
"x-completion-type": "file",
|
|
427
|
+
"x-completion-glob": "**/*@(.css|.scss|.less|.sass)"
|
|
428
|
+
}
|
|
429
|
+
]
|
|
430
|
+
},
|
|
431
|
+
"transformerPattern": {
|
|
432
|
+
"oneOf": [
|
|
433
|
+
{
|
|
434
|
+
"type": "string"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"type": "object",
|
|
438
|
+
"properties": {
|
|
439
|
+
"name": {
|
|
440
|
+
"type": "string"
|
|
441
|
+
},
|
|
442
|
+
"options": {
|
|
443
|
+
"type": "object",
|
|
444
|
+
"additionalProperties": true
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"additionalProperties": false,
|
|
448
|
+
"required": ["name"]
|
|
449
|
+
}
|
|
450
|
+
]
|
|
428
451
|
}
|
|
429
|
-
]
|
|
430
452
|
},
|
|
431
|
-
"
|
|
432
|
-
"oneOf": [
|
|
433
|
-
{
|
|
434
|
-
"type": "string"
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
"type": "object",
|
|
438
|
-
"properties": {
|
|
439
|
-
"name": {
|
|
440
|
-
"type": "string"
|
|
441
|
-
},
|
|
442
|
-
"options": {
|
|
443
|
-
"type": "object",
|
|
444
|
-
"additionalProperties": true
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
"additionalProperties": false,
|
|
448
|
-
"required": ["name"]
|
|
449
|
-
}
|
|
450
|
-
]
|
|
451
|
-
}
|
|
452
|
-
},
|
|
453
|
-
"examplesFile": "../../../docs/webpack-build-executor-examples.md"
|
|
453
|
+
"examplesFile": "../../../docs/webpack-build-executor-examples.md"
|
|
454
454
|
}
|