weboptimizer 2.0.1169 → 2.0.1170

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/declarations.d.ts CHANGED
@@ -25,7 +25,12 @@ declare module 'postcss-fontpath' {
25
25
  declare module 'postcss-sprites' {
26
26
  export default function(options:Partial<{
27
27
  filterBy:() => Promise<void>
28
- hooks:{onSaveSpritesheet:(_image:Mapping) => string}
28
+ hooks:{
29
+ onSaveSpritesheet:(_image:Mapping<unknown>) => string
30
+ onUpdateRule:(
31
+ _rule:PostcssNode, _token:PostcssNode, _image:Mapping<unknown>
32
+ ) => void
33
+ }
29
34
  spritePath:string
30
35
  stylesheetPath:null|string
31
36
  verbose:boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1169",
3
+ "version": "2.0.1170",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -111,7 +111,6 @@
111
111
  "devDependencies": {
112
112
  "@babel/cli": "*",
113
113
  "@babel/eslint-parser": "*",
114
- "@types/cssnano": "*",
115
114
  "@types/ejs": "*",
116
115
  "@types/favicons": "*",
117
116
  "@types/html-minifier": "*",
@@ -925,7 +924,7 @@
925
924
  "#": "The autoprefixer has to be disabled in this context since it would remove all needed vendor prefixes from the preceding processing (every prefix should be needed here).",
926
925
  "preset": [
927
926
  {
928
- "__evaluate__": "require('cssnano-preset-default')"
927
+ "__evaluate__": "optionalRequire('cssnano-preset-default')"
929
928
  },
930
929
  {
931
930
  "autoprefixer": false,