@newlogic-digital/core 2.0.4 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +7 -2
- package/package.json +13 -13
package/index.js
CHANGED
@@ -22,8 +22,8 @@ const posthtmlPrism = {
|
|
22
22
|
name: '@newlogic-digital/vite-plugin-posthtml-prism',
|
23
23
|
enforce: 'post',
|
24
24
|
transformIndexHtml: {
|
25
|
-
|
26
|
-
|
25
|
+
order: 'post',
|
26
|
+
handler: async (html, { filename }) => {
|
27
27
|
filename = filename.replace('?raw', '')
|
28
28
|
|
29
29
|
if (!filename.replace('.html', '').endsWith('ui.json')) {
|
@@ -168,7 +168,12 @@ const plugin = (options = {}) => {
|
|
168
168
|
userConfig.build.outDir = outDir
|
169
169
|
}
|
170
170
|
|
171
|
+
userConfig.optimizeDeps = Object.assign({
|
172
|
+
entries: []
|
173
|
+
}, userConfig.optimizeDeps ?? {})
|
174
|
+
|
171
175
|
userConfig.build = Object.assign({
|
176
|
+
target: ['edge89', 'firefox89', 'chrome89', 'safari15'],
|
172
177
|
manifest: true,
|
173
178
|
emptyOutDir: false,
|
174
179
|
modulePreload: false,
|
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.1.0",
|
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",
|
@@ -11,28 +11,28 @@
|
|
11
11
|
"eslint": "eslint '**/*.js' --fix"
|
12
12
|
},
|
13
13
|
"dependencies": {
|
14
|
-
"@vituum/vite-plugin-posthtml": "^1.
|
15
|
-
"@vituum/vite-plugin-juice": "^1.
|
16
|
-
"@vituum/vite-plugin-latte": "^1.
|
17
|
-
"@vituum/vite-plugin-twig": "^1.
|
18
|
-
"@vituum/vite-plugin-tailwindcss": "^1.
|
19
|
-
"@vituum/vite-plugin-send": "^1.0
|
20
|
-
"vituum": "^1.
|
14
|
+
"@vituum/vite-plugin-posthtml": "^1.1.0",
|
15
|
+
"@vituum/vite-plugin-juice": "^1.2.0",
|
16
|
+
"@vituum/vite-plugin-latte": "^1.1.0",
|
17
|
+
"@vituum/vite-plugin-twig": "^1.1.0",
|
18
|
+
"@vituum/vite-plugin-tailwindcss": "^1.1.0",
|
19
|
+
"@vituum/vite-plugin-send": "^1.1.0",
|
20
|
+
"vituum": "^1.1.0",
|
21
21
|
"posthtml": "^0.16.6",
|
22
22
|
"posthtml-prism": "^2.0.0",
|
23
23
|
"prismjs": "^1.29.0",
|
24
24
|
"html-minifier-terser": "^7.2.0",
|
25
25
|
"lodash": "^4.17.21",
|
26
|
-
"fast-glob": "^3.3.
|
26
|
+
"fast-glob": "^3.3.2",
|
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.9.1",
|
32
|
+
"eslint": "^8.53.0",
|
33
33
|
"eslint-config-standard": "^17.1.0",
|
34
|
-
"typescript": "^5.
|
35
|
-
"vite": "^
|
34
|
+
"typescript": "^5.2.2",
|
35
|
+
"vite": "^5.0.0"
|
36
36
|
},
|
37
37
|
"files": [
|
38
38
|
"latte",
|