@divriots/jampack 0.34.0 → 0.34.1

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/dist/optimize.js +1 -1
  2. package/package.json +2 -2
package/dist/optimize.js CHANGED
@@ -54,7 +54,7 @@ async function analyse(state, file) {
54
54
  const wasCharsetFirst = !charsetElements$.prev().length;
55
55
  const { options } = state;
56
56
  // Add a CSS reset for images that have been sized by jampack
57
- prependToHead += `<style>:where(img[jampack-sized]){max-width:100%;height:auto;}</style>`;
57
+ prependToHead += `<style>@layer __jampack__ { :where(img[jampack-sized]){max-width:100%;height:auto;} }</style>`;
58
58
  if (prependToHead || appendToHead) {
59
59
  if (prependToHead)
60
60
  heads.prepend(prependToHead);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@divriots/jampack",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "cache-version": {
5
5
  "img": "v1",
6
6
  "img-ext": "v1"
@@ -74,4 +74,4 @@
74
74
  "bugs": "https://github.com/divriots/jampack/issues",
75
75
  "keywords": [],
76
76
  "types": "dist/index.d.ts"
77
- }
77
+ }