@newlogic-digital/core 4.0.0-next.5 → 4.0.0-next.6

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 +5 -4
  2. package/src/minify.js +5 -9
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newlogic-digital/core",
3
3
  "type": "module",
4
- "version": "4.0.0-next.5",
4
+ "version": "4.0.0-next.6",
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",
@@ -12,6 +12,7 @@
12
12
  "publish-next": "npm publish --tag next"
13
13
  },
14
14
  "dependencies": {
15
+ "@minify-html/node": "^0.18.1",
15
16
  "@vituum/vite-plugin-juice": "^2.0.0-next.1",
16
17
  "@vituum/vite-plugin-latte": "^2.0.0-next.2",
17
18
  "@vituum/vite-plugin-send": "^2.0.0-next.1",
@@ -24,12 +25,12 @@
24
25
  "@eslint/js": "^9.39",
25
26
  "@stylistic/eslint-plugin": "^5.7",
26
27
  "@types/node": "^25.0",
28
+ "@vituum/vite-plugin-tailwindcss": "^1.2.0",
29
+ "@vituum/vite-plugin-twig": "^1.1.0",
27
30
  "eslint": "^9.39.2",
28
31
  "rolldown": "^1.0.0-beta.60",
29
32
  "typescript": "^5",
30
- "vite": "^8.0.0-beta.8",
31
- "@vituum/vite-plugin-tailwindcss": "^1.2.0",
32
- "@vituum/vite-plugin-twig": "^1.1.0"
33
+ "vite": "^8.0.0-beta.8"
33
34
  },
34
35
  "files": [
35
36
  "latte",
package/src/minify.js CHANGED
@@ -1,13 +1,9 @@
1
- const parseMinifyHtml = async (input, name) => {
2
- const minifier = (await import('html-minifier-terser')).default
1
+ import minifyHtml from '@minify-html/node'
3
2
 
4
- const minify = await minifier.minify(input, {
5
- collapseWhitespace: true,
6
- collapseInlineTagWhitespace: false,
7
- minifyCSS: true,
8
- removeAttributeQuotes: true,
9
- quoteCharacter: '\'',
10
- minifyJS: true,
3
+ const parseMinifyHtml = async (input, name) => {
4
+ const minify = await minifyHtml.minify(input, {
5
+ minify_css: true,
6
+ minify_js: true,
11
7
  })
12
8
 
13
9
  if (name) {