@newlogic-digital/core 4.0.0-next.4 → 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.
package/index.js CHANGED
@@ -20,7 +20,7 @@ const defaultOptions = {
20
20
  mode: null,
21
21
  cert: 'localhost',
22
22
  format: ['latte'],
23
- advancedChunks: {},
23
+ codeSplitting: {},
24
24
  input: {
25
25
  assets: [
26
26
  './src/styles/*.{css,pcss,scss,sass,less,styl,stylus}',
@@ -200,7 +200,7 @@ const plugin = async (options = {}) => {
200
200
  userConfig.build.rolldownOptions = Object.assign({
201
201
  input: defaultInput,
202
202
  output: {
203
- advancedChunks: options.advancedChunks ?? {
203
+ codeSplitting: options.codeSplitting ?? {
204
204
  groups: [
205
205
  {
206
206
  name: 'swup',
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.4",
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",
@@ -22,14 +23,14 @@
22
23
  },
23
24
  "devDependencies": {
24
25
  "@eslint/js": "^9.39",
25
- "@stylistic/eslint-plugin": "^5.6",
26
- "@types/node": "^25.0.3",
26
+ "@stylistic/eslint-plugin": "^5.7",
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
- "rolldown": "^1.0.0-beta.55",
31
+ "rolldown": "^1.0.0-beta.60",
29
32
  "typescript": "^5",
30
- "vite": "^8.0.0-beta.3",
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
- import minifier from 'html-minifier-terser'
1
+ import minifyHtml from '@minify-html/node'
2
2
 
3
3
  const parseMinifyHtml = async (input, name) => {
4
- const minify = await minifier.minify(input, {
5
- collapseWhitespace: true,
6
- collapseInlineTagWhitespace: false,
7
- minifyCSS: true,
8
- removeAttributeQuotes: true,
9
- quoteCharacter: '\'',
10
- minifyJS: true,
4
+ const minify = await minifyHtml.minify(input, {
5
+ minify_css: true,
6
+ minify_js: true,
11
7
  })
12
8
 
13
9
  if (name) {
package/types/index.d.ts CHANGED
@@ -9,10 +9,9 @@ export interface PluginUserConfig {
9
9
  format?: string[]
10
10
  input?: Input
11
11
  cert?: string
12
- advancedChunks?: import('rolldown').OutputOptions['advancedChunks']
12
+ codeSplitting?: import('rolldown').OutputOptions['codeSplitting']
13
13
  vituum?: import('vituum').UserConfig,
14
14
  css?: import('vite').CSSOptions
15
- posthtml?: import('@vituum/vite-plugin-posthtml').PluginUserConfig
16
15
  juice?: import('@vituum/vite-plugin-juice').PluginUserConfig
17
16
  send?: import('@vituum/vite-plugin-send').PluginUserConfig
18
17
  tailwindcss?: import('@vituum/vite-plugin-tailwindcss').PluginUserConfig