@angular-builders/custom-webpack 20.0.0 → 20.0.1-beta.1
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/README.md +24 -0
- package/dist/browser/schema.json +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -240,6 +240,30 @@ Builder options:
|
|
|
240
240
|
}
|
|
241
241
|
```
|
|
242
242
|
|
|
243
|
+
External `karma.conf.js` configuration:
|
|
244
|
+
|
|
245
|
+
Starting with Angular v20, generating an [external karma config](https://angular.dev/guide/testing#configuration) will cause tests to hang while utilizing `@angular-builders/custom-webpack:karma`.
|
|
246
|
+
|
|
247
|
+
Fix this by:
|
|
248
|
+
- adding `'@angular-devkit/build-angular'` to the `frameworks` array
|
|
249
|
+
- adding `'@angular-devkit/build-angular/plugins/karma'` to the `plugins` array
|
|
250
|
+
|
|
251
|
+
`karma.conf.js` example:
|
|
252
|
+
```js
|
|
253
|
+
module.exports = function (config) {
|
|
254
|
+
config.set({
|
|
255
|
+
basePath: '',
|
|
256
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
257
|
+
plugins: [
|
|
258
|
+
require('karma-jasmine'),
|
|
259
|
+
require('karma-chrome-launcher'),
|
|
260
|
+
require('karma-jasmine-html-reporter'),
|
|
261
|
+
require('karma-coverage'),
|
|
262
|
+
require('@angular-devkit/build-angular/plugins/karma'),
|
|
263
|
+
],
|
|
264
|
+
// ...
|
|
265
|
+
```
|
|
266
|
+
|
|
243
267
|
## Custom Webpack `extract-i18n`
|
|
244
268
|
|
|
245
269
|
Enhanced `@angular-devkit/build-angular:extract-i18n` builder that leverages the custom webpack builder to get webpack configuration.
|
package/dist/browser/schema.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"assets": {
|
|
8
8
|
"type": "array",
|
|
9
|
-
"description": "
|
|
9
|
+
"description": "Define the assets to be copied to the output directory. These assets are copied as-is without any further processing or hashing.",
|
|
10
10
|
"default": [],
|
|
11
11
|
"items": {
|
|
12
12
|
"$ref": "#/definitions/assetPattern"
|
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
},
|
|
337
337
|
"outputHashing": {
|
|
338
338
|
"type": "string",
|
|
339
|
-
"description": "Define the output filename cache-busting hashing mode.",
|
|
339
|
+
"description": "Define the output filename cache-busting hashing mode.\n\n- `none`: No hashing.\n- `all`: Hash for all output bundles. \n- `media`: Hash for all output media (e.g., images, fonts, etc. that are referenced in CSS files).\n- `bundles`: Hash for output of lazy and main bundles.",
|
|
340
340
|
"default": "none",
|
|
341
341
|
"enum": [
|
|
342
342
|
"none",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-builders/custom-webpack",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.1-beta.1",
|
|
4
4
|
"description": "Custom webpack builders for Angular build facade. Allow to modify Angular build configuration without ejecting it",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"builders": "builders.json",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@angular-builders/common": "4.0.0",
|
|
43
|
+
"@angular-builders/common": "4.0.1-beta.0",
|
|
44
44
|
"@angular-devkit/architect": ">=0.2000.0 < 0.2100.0",
|
|
45
45
|
"@angular-devkit/build-angular": "^20.0.0",
|
|
46
46
|
"@angular-devkit/core": "^20.0.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"jest": "29.7.0",
|
|
56
56
|
"rimraf": "^5.0.0",
|
|
57
57
|
"ts-node": "^10.0.0",
|
|
58
|
-
"typescript": "5.
|
|
58
|
+
"typescript": "5.9.3"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "3373452bf151570351ded2b0c0ecb12d76779dd5"
|
|
61
61
|
}
|