weboptimizer 2.0.1512 → 2.0.1514
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
|
@@ -155,7 +155,7 @@ if (plugins.HTML) {
|
|
|
155
155
|
if (htmlAvailable && Object.prototype.hasOwnProperty.call(configuration, 'favicon') && plugins.Favicon && (0, _clientnode.isFileSync)([].concat(configuration.favicon.logo)[0])) pluginInstances.push(new plugins.Favicon(configuration.favicon));
|
|
156
156
|
//// endregion
|
|
157
157
|
//// region provide offline functionality
|
|
158
|
-
if (htmlAvailable &&
|
|
158
|
+
if (htmlAvailable && configuration.offline && Object.prototype.hasOwnProperty.call(plugins, 'Offline')) {
|
|
159
159
|
if (!['serve', 'test:browser'].includes(configuration.givenCommandLineArguments[2])) for (var _i3 = 0, _Object$entries3 = Object.entries({
|
|
160
160
|
cascadingStyleSheet: 'css',
|
|
161
161
|
javaScript: 'js'
|