weboptimizer 3.0.26 → 3.0.28
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 +4 -7
- package/webpackConfigurator.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.28",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -637,7 +637,7 @@
|
|
|
637
637
|
"__evaluate__": "self.path.source.asset.favicon"
|
|
638
638
|
},
|
|
639
639
|
"prefix": {
|
|
640
|
-
"__evaluate__": "`${path.relative(self.path.target.base, path.resolve(self.path.target.asset.image, 'favicons-[chunkhash]'))}/`"
|
|
640
|
+
"__evaluate__": "typeof self.path.target.asset.image === 'string' ? `${path.relative(self.path.target.base, path.resolve(self.path.target.asset.image, 'favicons-[chunkhash]'))}/` : `${path.relative(self.path.target.base, 'favicons-[chunkhash]')}/`"
|
|
641
641
|
}
|
|
642
642
|
},
|
|
643
643
|
"files": {
|
|
@@ -655,7 +655,7 @@
|
|
|
655
655
|
"__evaluate__": "self.debug || self.generic.isWeb ? `${path.resolve(self.path.target.asset.cascadingStyleSheet, '[name].css')}?${self.hashAlgorithm}=[chunkhash]` : null"
|
|
656
656
|
},
|
|
657
657
|
"image": {
|
|
658
|
-
"__evaluate__": "self.debug ? null : path.resolve(self.path.target.asset.image, 'sprite.png')"
|
|
658
|
+
"__evaluate__": "self.debug ? null : typeof self.path.target.asset.image === 'string' ? path.resolve(self.path.target.asset.image, 'sprite.png') : path.resolve(self.path.target.asset.base, 'sprite.png')"
|
|
659
659
|
},
|
|
660
660
|
"javaScript": {
|
|
661
661
|
"__evaluate__": "`${path.resolve(self.path.target.asset.javaScript, '[name]')}.js?${self.hashAlgorithm}=[chunkhash]`"
|
|
@@ -1330,7 +1330,7 @@
|
|
|
1330
1330
|
"cascadingStyleSheet": "cascadingStyleSheet/",
|
|
1331
1331
|
"data": "data/",
|
|
1332
1332
|
"favicon": {
|
|
1333
|
-
"__evaluate__": "path.join(self.path.target.asset.image, 'favicon.png')"
|
|
1333
|
+
"__evaluate__": "typeof self.path.target.asset.image === 'string' ? path.join(self.path.target.asset.image, 'favicon.png') : self.path.target.asset.image"
|
|
1334
1334
|
},
|
|
1335
1335
|
"font": "font/",
|
|
1336
1336
|
"image": "image/",
|
|
@@ -1366,9 +1366,6 @@
|
|
|
1366
1366
|
},
|
|
1367
1367
|
{
|
|
1368
1368
|
"__evaluate__": "path.resolve(self.path.target.asset.javaScript, 'styles.bundle.js.map')"
|
|
1369
|
-
},
|
|
1370
|
-
{
|
|
1371
|
-
"__evaluate__": "self.files.compose.image ? path.resolve(self.path.source.asset.image, path.relative(self.path.target.asset.image, self.files.compose.image)) : null"
|
|
1372
1369
|
}
|
|
1373
1370
|
],
|
|
1374
1371
|
"tidyUpGlobs": [
|
package/webpackConfigurator.js
CHANGED
|
@@ -940,7 +940,7 @@ var genericLoader = {
|
|
|
940
940
|
});
|
|
941
941
|
},
|
|
942
942
|
generator: {
|
|
943
|
-
filename: (0, _path.join)((0, _path.relative)(configuration.path.target.base, configuration.path.target.asset.image), '[name][ext]') + "?".concat(configuration.hashAlgorithm, "=[contenthash]")
|
|
943
|
+
filename: typeof configuration.path.target.asset.image === 'string' ? (0, _path.join)((0, _path.relative)(configuration.path.target.base, configuration.path.target.asset.image), '[name][ext]') + "?".concat(configuration.hashAlgorithm, "=[contenthash]") : configuration.path.target.asset.image
|
|
944
944
|
},
|
|
945
945
|
include: configuration.path.source.asset.image,
|
|
946
946
|
test: /\.(?: gif|ico|jpg|png|svg)(?: \?.*)?$/i,
|