weboptimizer 2.0.1512 → 2.0.1513
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/package.json +1 -1
- package/type.d.ts +2 -2
- package/webpackConfigurator.js +1 -1
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -372,12 +372,12 @@ export interface ResolvedConfiguration {
|
|
|
372
372
|
needed: Mapping<boolean>;
|
|
373
373
|
nodeENV: false | null | string;
|
|
374
374
|
nodeEnvironment: NodeEnvironment;
|
|
375
|
-
offline: {
|
|
375
|
+
offline: (null | {
|
|
376
376
|
common: WorkboxBaseCommonOptions & WorkboxCommonOptions;
|
|
377
377
|
injectionManifest: WorkboxInjectManifestOptions;
|
|
378
378
|
serviceWorker: WorkboxGenerateSWOptions;
|
|
379
379
|
use: 'injectionManifest' | 'serviceWorker';
|
|
380
|
-
};
|
|
380
|
+
});
|
|
381
381
|
package: {
|
|
382
382
|
aliasPropertyNames: Array<string>;
|
|
383
383
|
main: {
|
package/webpackConfigurator.js
CHANGED
|
@@ -173,7 +173,7 @@ if (htmlAvailable && Object.prototype.hasOwnProperty.call(configuration, 'offlin
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
if (plugins.InjectManifest && [].concat(configuration.offline.use).includes('injectionManifest')) pluginInstances.push(new plugins.InjectManifest((0, _clientnode.extend)(true, configuration.offline.common, configuration.offline.injectionManifest)));
|
|
176
|
+
if (plugins.InjectManifest && configuration.offline && [].concat(configuration.offline.use).includes('injectionManifest')) pluginInstances.push(new plugins.InjectManifest((0, _clientnode.extend)(true, configuration.offline.common, configuration.offline.injectionManifest)));
|
|
177
177
|
if (plugins.GenerateServiceWorker && [].concat(configuration.offline.use).includes('generateServiceWorker')) pluginInstances.push(new plugins.GenerateServiceWorker((0, _clientnode.extend)(true, configuration.offline.common, configuration.offline.serviceWorker)));
|
|
178
178
|
}
|
|
179
179
|
//// endregion
|