@newlogic-digital/core 4.0.0-next.4 → 4.0.0-next.5
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 +2 -2
- package/package.json +5 -5
- package/src/minify.js +2 -2
- package/types/index.d.ts +1 -2
package/index.js
CHANGED
|
@@ -20,7 +20,7 @@ const defaultOptions = {
|
|
|
20
20
|
mode: null,
|
|
21
21
|
cert: 'localhost',
|
|
22
22
|
format: ['latte'],
|
|
23
|
-
|
|
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
|
-
|
|
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
|
+
"version": "4.0.0-next.5",
|
|
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",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@eslint/js": "^9.39",
|
|
25
|
-
"@stylistic/eslint-plugin": "^5.
|
|
26
|
-
"@types/node": "^25.0
|
|
25
|
+
"@stylistic/eslint-plugin": "^5.7",
|
|
26
|
+
"@types/node": "^25.0",
|
|
27
27
|
"eslint": "^9.39.2",
|
|
28
|
-
"rolldown": "^1.0.0-beta.
|
|
28
|
+
"rolldown": "^1.0.0-beta.60",
|
|
29
29
|
"typescript": "^5",
|
|
30
|
-
"vite": "^8.0.0-beta.
|
|
30
|
+
"vite": "^8.0.0-beta.8",
|
|
31
31
|
"@vituum/vite-plugin-tailwindcss": "^1.2.0",
|
|
32
32
|
"@vituum/vite-plugin-twig": "^1.1.0"
|
|
33
33
|
},
|
package/src/minify.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import minifier from 'html-minifier-terser'
|
|
2
|
-
|
|
3
1
|
const parseMinifyHtml = async (input, name) => {
|
|
2
|
+
const minifier = (await import('html-minifier-terser')).default
|
|
3
|
+
|
|
4
4
|
const minify = await minifier.minify(input, {
|
|
5
5
|
collapseWhitespace: true,
|
|
6
6
|
collapseInlineTagWhitespace: false,
|
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
|
-
|
|
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
|