@rushstack/heft-web-rig 1.3.5 → 1.4.0
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/CHANGELOG.json +17 -0
- package/CHANGELOG.md +8 -1
- package/package.json +6 -5
- package/profiles/app/config/heft.json +15 -1
- package/profiles/app/tsconfig-base.json +1 -1
- package/profiles/library/config/heft.json +15 -1
- package/profiles/library/tsconfig-base.json +1 -1
- package/shared/webpack-base.config.js +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/heft-web-rig",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "1.4.0",
|
|
6
|
+
"tag": "@rushstack/heft-web-rig_v1.4.0",
|
|
7
|
+
"date": "Tue, 24 Feb 2026 02:08:44 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Add `@rushstack/heft-static-asset-typings-plugin` to the `app` and `library` profiles, generating `.d.ts` typings for static asset files (images and text). This enables type-safe asset imports in TypeScript without needing `allowArbitraryExtensions` or `require()` calls. Also add `.webp` and `.avif` to the webpack asset resource rule."
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"dependency": [
|
|
15
|
+
{
|
|
16
|
+
"comment": "Updating dependency \"@rushstack/heft-static-asset-typings-plugin\" to `0.1.0`"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
4
21
|
{
|
|
5
22
|
"version": "1.3.5",
|
|
6
23
|
"tag": "@rushstack/heft-web-rig_v1.3.5",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Change Log - @rushstack/heft-web-rig
|
|
2
2
|
|
|
3
|
-
This log was last generated on Tue, 24 Feb 2026
|
|
3
|
+
This log was last generated on Tue, 24 Feb 2026 02:08:44 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 1.4.0
|
|
6
|
+
Tue, 24 Feb 2026 02:08:44 GMT
|
|
7
|
+
|
|
8
|
+
### Minor changes
|
|
9
|
+
|
|
10
|
+
- Add `@rushstack/heft-static-asset-typings-plugin` to the `app` and `library` profiles, generating `.d.ts` typings for static asset files (images and text). This enables type-safe asset imports in TypeScript without needing `allowArbitraryExtensions` or `require()` calls. Also add `.webp` and `.avif` to the webpack asset resource rule.
|
|
4
11
|
|
|
5
12
|
## 1.3.5
|
|
6
13
|
Tue, 24 Feb 2026 01:13:27 GMT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/heft-web-rig",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "A rig package for web browser projects that build using Heft",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,14 +32,15 @@
|
|
|
32
32
|
"webpack-bundle-analyzer": "~4.5.0",
|
|
33
33
|
"webpack-merge": "~5.8.0",
|
|
34
34
|
"webpack": "~5.105.2",
|
|
35
|
-
"@rushstack/heft-api-extractor-plugin": "1.3.4",
|
|
36
35
|
"@microsoft/api-extractor": "7.57.4",
|
|
37
|
-
"@rushstack/heft-lint-plugin": "1.2.4",
|
|
38
36
|
"@rushstack/eslint-config": "4.6.3",
|
|
37
|
+
"@rushstack/heft-static-asset-typings-plugin": "0.1.0",
|
|
38
|
+
"@rushstack/heft-api-extractor-plugin": "1.3.4",
|
|
39
|
+
"@rushstack/heft-lint-plugin": "1.2.4",
|
|
39
40
|
"@rushstack/heft-jest-plugin": "1.2.4",
|
|
40
|
-
"@rushstack/heft-sass-plugin": "1.2.4",
|
|
41
41
|
"@rushstack/heft-typescript-plugin": "1.2.4",
|
|
42
|
-
"@rushstack/heft-webpack5-plugin": "1.3.4"
|
|
42
|
+
"@rushstack/heft-webpack5-plugin": "1.3.4",
|
|
43
|
+
"@rushstack/heft-sass-plugin": "1.2.4"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
46
|
"@rushstack/heft": "1.2.4"
|
|
@@ -47,8 +47,22 @@
|
|
|
47
47
|
"pluginPackage": "@rushstack/heft-sass-plugin"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
+
"image-typings": {
|
|
51
|
+
"taskDependencies": ["set-browserslist-ignore-old-data-env-var"],
|
|
52
|
+
"taskPlugin": {
|
|
53
|
+
"pluginPackage": "@rushstack/heft-static-asset-typings-plugin",
|
|
54
|
+
"pluginName": "resource-assets-plugin",
|
|
55
|
+
"options": {
|
|
56
|
+
"configType": "inline",
|
|
57
|
+
"config": {
|
|
58
|
+
"fileExtensions": [".png", ".jpg", ".jpeg", ".gif", ".svg", ".ico", ".webp", ".avif"],
|
|
59
|
+
"generatedTsFolders": ["temp/image-typings"]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
50
64
|
"typescript": {
|
|
51
|
-
"taskDependencies": ["sass"],
|
|
65
|
+
"taskDependencies": ["sass", "image-typings"],
|
|
52
66
|
"taskPlugin": {
|
|
53
67
|
"pluginPackage": "@rushstack/heft-typescript-plugin"
|
|
54
68
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"compilerOptions": {
|
|
5
5
|
"outDir": "../../../../../lib",
|
|
6
6
|
"rootDir": "../../../../../src",
|
|
7
|
-
"rootDirs": ["../../../../../src", "../../../../../temp/sass-ts"],
|
|
7
|
+
"rootDirs": ["../../../../../src", "../../../../../temp/sass-ts", "../../../../../temp/image-typings"],
|
|
8
8
|
|
|
9
9
|
"forceConsistentCasingInFileNames": true,
|
|
10
10
|
"jsx": "react",
|
|
@@ -47,8 +47,22 @@
|
|
|
47
47
|
"pluginPackage": "@rushstack/heft-sass-plugin"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
+
"image-typings": {
|
|
51
|
+
"taskDependencies": ["set-browserslist-ignore-old-data-env-var"],
|
|
52
|
+
"taskPlugin": {
|
|
53
|
+
"pluginPackage": "@rushstack/heft-static-asset-typings-plugin",
|
|
54
|
+
"pluginName": "resource-assets-plugin",
|
|
55
|
+
"options": {
|
|
56
|
+
"configType": "inline",
|
|
57
|
+
"config": {
|
|
58
|
+
"fileExtensions": [".png", ".jpg", ".jpeg", ".gif", ".svg", ".ico", ".webp", ".avif"],
|
|
59
|
+
"generatedTsFolders": ["temp/image-typings"]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
50
64
|
"typescript": {
|
|
51
|
-
"taskDependencies": ["sass"],
|
|
65
|
+
"taskDependencies": ["sass", "image-typings"],
|
|
52
66
|
"taskPlugin": {
|
|
53
67
|
"pluginPackage": "@rushstack/heft-typescript-plugin"
|
|
54
68
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"compilerOptions": {
|
|
5
5
|
"outDir": "../../../../../lib",
|
|
6
6
|
"rootDir": "../../../../../src",
|
|
7
|
-
"rootDirs": ["../../../../../src", "../../../../../temp/sass-ts"],
|
|
7
|
+
"rootDirs": ["../../../../../src", "../../../../../temp/sass-ts", "../../../../../temp/image-typings"],
|
|
8
8
|
|
|
9
9
|
"forceConsistentCasingInFileNames": true,
|
|
10
10
|
"jsx": "react",
|
|
@@ -205,7 +205,7 @@ function createWebpackConfig({ env, argv, projectRoot, configOverride, extractCs
|
|
|
205
205
|
},
|
|
206
206
|
|
|
207
207
|
{
|
|
208
|
-
test: /\.(jpeg|jpg|png|gif|svg|ico|woff|woff2|ttf|eot)$/,
|
|
208
|
+
test: /\.(jpeg|jpg|png|gif|svg|ico|webp|avif|woff|woff2|ttf|eot)$/,
|
|
209
209
|
// Allows import/require() to be used with an asset file. The file will be copied to the output folder,
|
|
210
210
|
// and the import statement will return its URL.
|
|
211
211
|
// https://webpack.js.org/guides/asset-modules/#resource-assets
|