weboptimizer 3.0.26 → 3.0.27

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": "3.0.26",
3
+ "version": "3.0.27",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -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,