@newlogic-digital/core 2.0.0 → 2.0.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.
- package/index.js +13 -1
- package/package.json +6 -6
package/index.js
CHANGED
|
@@ -39,6 +39,17 @@ const posthtmlPrism = {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
const postcssImportSupports = {
|
|
43
|
+
name: 'postcss-import-supports',
|
|
44
|
+
transform (code, path) {
|
|
45
|
+
if (path.endsWith('.css')) {
|
|
46
|
+
return {
|
|
47
|
+
code: code.replace('@media supports', '@supports')
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
42
53
|
/**
|
|
43
54
|
* @type {import('@newlogic-digital/core/types').PluginUserConfig}
|
|
44
55
|
*/
|
|
@@ -107,7 +118,8 @@ const plugin = (options = {}) => {
|
|
|
107
118
|
...templatesPlugins,
|
|
108
119
|
juice(options.juice),
|
|
109
120
|
send(options.send),
|
|
110
|
-
posthtmlPrism
|
|
121
|
+
posthtmlPrism,
|
|
122
|
+
postcssImportSupports
|
|
111
123
|
]
|
|
112
124
|
|
|
113
125
|
return [{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newlogic-digital/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "New Logic Studio s.r.o.",
|
|
7
7
|
"description": "Set of tools that can be used to create modern web applications",
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
"prismjs": "^1.29.0",
|
|
24
24
|
"html-minifier-terser": "^7.2.0",
|
|
25
25
|
"lodash": "^4.17.21",
|
|
26
|
-
"fast-glob": "^3.
|
|
26
|
+
"fast-glob": "^3.3.0",
|
|
27
27
|
"fs-extra": "^11.1.1",
|
|
28
28
|
"picocolors": "^1.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/node": "^20.
|
|
32
|
-
"eslint": "^8.
|
|
31
|
+
"@types/node": "^20.4.2",
|
|
32
|
+
"eslint": "^8.44.0",
|
|
33
33
|
"eslint-config-standard": "^17.1.0",
|
|
34
|
-
"typescript": "^5.1.
|
|
35
|
-
"vite": "^4.
|
|
34
|
+
"typescript": "^5.1.6",
|
|
35
|
+
"vite": "^4.4.4"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"latte",
|