@glitchr/media-query-plugin 1.5.3 → 1.5.5

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/plugin.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glitchr/media-query-plugin",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "description": "Webpack plugin for media query extraction.",
5
5
  "license": "MIT",
6
6
  "access": "public",
package/src/plugin.js CHANGED
@@ -81,7 +81,7 @@ module.exports = class MediaQueryPlugin {
81
81
  // while considering hash
82
82
  const basename = this.options.filename
83
83
  .replace('[name]', mediaKey)
84
- .replace(/\[(content|chunk)?hash\]/, hash)
84
+ .replace(/\[(content|chunk)?hash(?:\:[0-9]*)\]/, hash)
85
85
  .replace(/\.[^.]+$/, '');
86
86
 
87
87
  // if there's no chunk for the extracted media, create one