@tramvai/cli 4.41.99 → 4.41.104
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/lib/builder/webpack/devServer/server.d.ts.map +1 -1
- package/lib/builder/webpack/devServer/server.js +4 -0
- package/lib/builder/webpack/devServer/server.js.map +1 -1
- package/lib/builder/webpack/tokens.d.ts +3 -0
- package/lib/builder/webpack/tokens.d.ts.map +1 -1
- package/lib/config/configManager.js +2 -2
- package/lib/config/configManager.js.map +1 -1
- package/lib/di/tokens/config.d.ts +1 -0
- package/lib/di/tokens/config.d.ts.map +1 -1
- package/lib/library/webpack/application/client/common.d.ts.map +1 -1
- package/lib/library/webpack/application/client/common.js +27 -2
- package/lib/library/webpack/application/client/common.js.map +1 -1
- package/lib/library/webpack/constants/stats.d.ts.map +1 -1
- package/lib/library/webpack/constants/stats.js +2 -0
- package/lib/library/webpack/constants/stats.js.map +1 -1
- package/lib/library/webpack/plugins/AssetsIntegritiesPlugin.d.ts +8 -0
- package/lib/library/webpack/plugins/AssetsIntegritiesPlugin.d.ts.map +1 -0
- package/lib/library/webpack/plugins/AssetsIntegritiesPlugin.js +30 -0
- package/lib/library/webpack/plugins/AssetsIntegritiesPlugin.js.map +1 -0
- package/lib/schema/autogeneratedSchema.json +135 -15
- package/lib/typings/configEntry/cli.d.ts +13 -0
- package/lib/typings/configEntry/cli.d.ts.map +1 -1
- package/package.json +7 -6
- package/schema.json +135 -15
- package/src/builder/webpack/devServer/server.ts +5 -0
- package/src/config/configManager.ts +2 -2
- package/src/library/webpack/application/client/common.ts +33 -2
- package/src/library/webpack/constants/stats.ts +2 -0
- package/src/library/webpack/plugins/AssetsIntegritiesPlugin.ts +36 -0
- package/src/models/config.spec.ts +4 -0
- package/src/schema/autogeneratedSchema.json +135 -15
- package/src/schema/tramvai.spec.ts +2 -0
- package/src/typings/configEntry/cli.ts +14 -0
|
@@ -125,6 +125,7 @@ describe('JSON schema для tramvai.json', () => {
|
|
|
125
125
|
"overlay": false,
|
|
126
126
|
},
|
|
127
127
|
},
|
|
128
|
+
"integrity": false,
|
|
128
129
|
"modern": true,
|
|
129
130
|
"name": "test-app",
|
|
130
131
|
"notifications": {},
|
|
@@ -192,6 +193,7 @@ describe('JSON schema для tramvai.json', () => {
|
|
|
192
193
|
"overlay": false,
|
|
193
194
|
},
|
|
194
195
|
},
|
|
196
|
+
"integrity": false,
|
|
195
197
|
"name": "test-module",
|
|
196
198
|
"notifications": {},
|
|
197
199
|
"output": "dist/modules",
|
|
@@ -87,6 +87,15 @@ export interface Experiments {
|
|
|
87
87
|
enableFillDeclareActionNamePlugin: boolean;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
/**
|
|
91
|
+
* @see https://github.com/waysact/webpack-subresource-integrity/tree/main/webpack-subresource-integrity#options
|
|
92
|
+
*/
|
|
93
|
+
export interface IntegrityOptions {
|
|
94
|
+
enabled: boolean | 'auto';
|
|
95
|
+
hashFuncNames: ('sha256' | 'sha384' | 'sha512')[];
|
|
96
|
+
hashLoading: 'eager' | 'lazy';
|
|
97
|
+
}
|
|
98
|
+
|
|
90
99
|
/**
|
|
91
100
|
* @default {}
|
|
92
101
|
* @additionalProperties true
|
|
@@ -113,6 +122,11 @@ export interface CliConfigEntry extends ConfigEntry {
|
|
|
113
122
|
* @default false
|
|
114
123
|
*/
|
|
115
124
|
sourceMap: OverridableOption<boolean>;
|
|
125
|
+
/**
|
|
126
|
+
* @title Integrity generation options
|
|
127
|
+
* @default false
|
|
128
|
+
*/
|
|
129
|
+
integrity: boolean | IntegrityOptions;
|
|
116
130
|
/**
|
|
117
131
|
* @title Change different experimental cli settings
|
|
118
132
|
* @default {}
|