weboptimizer 2.0.1203 → 2.0.1208

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.
Files changed (3) hide show
  1. package/package.json +15 -18
  2. package/readme.md +2 -0
  3. package/type.d.ts +2 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1203",
3
+ "version": "2.0.1208",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -81,6 +81,7 @@
81
81
  "update": "yarn version --patch && yarn publish",
82
82
  "update:documentation": "documentation-website"
83
83
  },
84
+ "runkitExample": "require('@babel/runtime/package.json')\n\nconst {default: main} = require('weboptimizer')\n\nawait main('./', './', ['clear'])",
84
85
  "dependencies": {
85
86
  "@babel/core": "*",
86
87
  "@babel/plugin-proposal-decorators": "*",
@@ -611,30 +612,26 @@
611
612
  },
612
613
  "favicon": {
613
614
  "background": "white",
614
- "emitStats": false,
615
- "icons": {
616
- "android": true,
617
- "appleIcon": true,
618
- "appleStartup": true,
619
- "coast": true,
620
- "favicons": true,
621
- "firefox": true,
622
- "opengraph": true,
623
- "twitter": true,
624
- "windows": true,
625
- "yandex": true
615
+ "cache": true,
616
+ "favicons": {
617
+ "appName": {
618
+ "__evaluate__": "self.name"
619
+ },
620
+ "icons": {
621
+ "android": true,
622
+ "appleIcon": true,
623
+ "appleStartup": true,
624
+ "favicons": true,
625
+ "windows": true,
626
+ "yandex": true
627
+ }
626
628
  },
627
629
  "inject": true,
628
630
  "logo": {
629
631
  "__evaluate__": "self.path.source.asset.favicon"
630
632
  },
631
- "persistentCache": true,
632
633
  "prefix": {
633
634
  "__evaluate__": "`${path.relative(self.path.target.base, path.resolve(self.path.target.asset.image, 'favicons-[chunkhash]'))}/`"
634
- },
635
- "statsFilename": "iconStats.json",
636
- "title": {
637
- "__evaluate__": "self.name"
638
635
  }
639
636
  },
640
637
  "files": {
package/readme.md CHANGED
@@ -31,6 +31,8 @@ Project status
31
31
  -->
32
32
  [![documentation website](https://img.shields.io/website-up-down-green-red/https/torben.website/weboptimizer.svg?label=documentation-website)](https://torben.website/weboptimizer)
33
33
 
34
+ [![Try out](https://badge.runkitcdn.com/weboptimizer.svg)](https://npm.runkit.com/weboptimizer)
35
+
34
36
  Use case
35
37
  --------
36
38
 
package/type.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="webpack-env" />
3
3
  import { AnyFunction, Encoding, Mapping, PlainObject, SecondParameter } from 'clientnode/type';
4
- import { FaviconOptions } from 'favicons';
5
4
  import FaviconWebpackPlugin from 'favicons-webpack-plugin';
5
+ import { FaviconWebpackPlugionOptions as FaviconWebpackPluginOptions } from 'favicons-webpack-plugin/src/options';
6
6
  import HtmlWebpackPlugin from 'html-webpack-plugin';
7
7
  import ImageMinimizerWebpackPlugin, { PluginOptions as ImageMinimizerOptions } from 'image-minimizer-webpack-plugin';
8
8
  import { JSDOM } from 'jsdom';
@@ -278,9 +278,7 @@ export interface ResolvedConfiguration {
278
278
  self: ExportFormat;
279
279
  };
280
280
  extensions: Extensions;
281
- favicon: Mapping<FaviconOptions> & {
282
- logo: string;
283
- };
281
+ favicon: FaviconWebpackPluginOptions;
284
282
  files: {
285
283
  additionalPaths: Array<string>;
286
284
  compose: {