@maizzle/framework 6.0.0-5 → 6.0.0-7

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/CHANGELOG.md CHANGED
@@ -4,7 +4,19 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## [6.0.0-3] - 2025-07-14
7
+ ## [6.0.0-6] - 2025-07-14
8
+
9
+ ### Fixed
10
+
11
+ - use extension when importing file 99835d3
12
+
13
+ ## [6.0.0-5] - 2025-07-14
14
+
15
+ ### Changed
16
+
17
+ - run css compilation before components too 272bbdb
18
+
19
+ ## [6.0.0-4] - 2025-07-14
8
20
 
9
21
  ### Added
10
22
 
@@ -18,6 +30,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
18
30
 
19
31
  - removed `posthtml-postcss` dependency
20
32
 
33
+ ## [6.0.0-3] - 2025-07-14
34
+
35
+ ### Added
36
+
37
+ - safelist spark targeting selectors f29efb8
38
+ - safelist targeting for superhuman beb6b41
39
+ - safelist notion mail targeting 5cfd68f
40
+
41
+ ### Changed
42
+
43
+ - safelisting outlook targeting b8b21f3
44
+ - safelisting selectors acb7b80
45
+
46
+ ### Fixed
47
+
48
+ - safelist class names for container queries b828c44
49
+ - purge safelisting patterns d6b9c48
50
+ - safelisting comcast targeting selector 9677421
51
+ - preserve yahoo mail targeting selectors 2f3429f
52
+
21
53
  ## [6.0.0-2] - 2025-07-11
22
54
 
23
55
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maizzle/framework",
3
- "version": "6.0.0-5",
3
+ "version": "6.0.0-7",
4
4
  "description": "Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,4 +1,4 @@
1
- import { validAttributeNames } from "./postcss/compileCss"
1
+ import { validAttributeNames } from './postcss/compileCss.js'
2
2
 
3
3
  const plugin = () => tree => {
4
4
  const process = node => {
@@ -118,16 +118,25 @@ export async function readFileConfig(config) {
118
118
  }
119
119
 
120
120
  /**
121
- * Override the `content` key in `baseConfig` with the one in `envConfig`.
122
- *
123
- * This is done so that each build uses its own `content` paths, in
124
- * order to avoid compiling unnecessary files.
121
+ * Override the `build.content` key in `baseConfig` with the one in `envConfig`
122
+ * if present. We do this so that each build uses its own `content` paths,
123
+ * in order to avoid compiling unnecessary files.
125
124
  */
126
- if (Array.isArray(envConfig.content)) {
127
- baseConfig.content = []
125
+ if (envConfig.build && Array.isArray(envConfig.build.content)) {
126
+ baseConfig.build = baseConfig.build || {}
127
+ baseConfig.build.content = envConfig.build.content
128
+ // Remove build.content from envConfig to prevent merging duplicates
129
+ envConfig = { ...envConfig, build: { ...envConfig.build, content: undefined } }
130
+ }
131
+
132
+ // Merge envConfig and baseConfig, but ensure build.content is not duplicated
133
+ const merged = merge(envConfig, baseConfig)
134
+
135
+ if (baseConfig.build && Array.isArray(baseConfig.build.content)) {
136
+ merged.build.content = baseConfig.build.content
128
137
  }
129
138
 
130
- return merge(envConfig, baseConfig)
139
+ return merged
131
140
  } catch (_error) {
132
141
  throw new Error('Could not compute config')
133
142
  }