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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1512",
3
+ "version": "2.0.1514",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
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: {
@@ -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 && Object.prototype.hasOwnProperty.call(configuration, 'offline') && Object.prototype.hasOwnProperty.call(plugins, 'Offline')) {
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'