olovastart 0.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/README.md +61 -0
- package/dist/chunk-PR4QN5HX.js +39 -0
- package/dist/chunk-PR4QN5HX.js.map +1 -0
- package/dist/chunk-WDVSAQST.js +384 -0
- package/dist/chunk-WDVSAQST.js.map +1 -0
- package/dist/entry-server.cjs +51 -0
- package/dist/entry-server.cjs.map +1 -0
- package/dist/entry-server.js +46 -0
- package/dist/entry-server.js.map +1 -0
- package/dist/main.cjs +18 -0
- package/dist/main.cjs.map +1 -0
- package/dist/main.js +16 -0
- package/dist/main.js.map +1 -0
- package/dist/olova.cjs +34015 -0
- package/dist/olova.cjs.map +1 -0
- package/dist/olova.d.cts +67 -0
- package/dist/olova.d.ts +67 -0
- package/dist/olova.js +33605 -0
- package/dist/olova.js.map +1 -0
- package/dist/performance.cjs +403 -0
- package/dist/performance.cjs.map +1 -0
- package/dist/performance.js +4 -0
- package/dist/performance.js.map +1 -0
- package/package.json +80 -0
package/dist/olova.d.cts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Olova Performance Optimizations Plugin
|
|
3
|
+
*
|
|
4
|
+
* Provides build-time optimizations for SSG:
|
|
5
|
+
* - Code splitting strategies
|
|
6
|
+
* - Asset compression (gzip/brotli)
|
|
7
|
+
* - Chunk size analysis
|
|
8
|
+
* - Resource prioritization
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
interface PerformanceOptions {
|
|
12
|
+
/**
|
|
13
|
+
* Enable gzip compression for assets
|
|
14
|
+
* @default true
|
|
15
|
+
*/
|
|
16
|
+
gzip?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Enable brotli compression for assets
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
brotli?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Minimum file size (in bytes) to compress
|
|
24
|
+
* @default 1024 (1KB)
|
|
25
|
+
*/
|
|
26
|
+
threshold?: number;
|
|
27
|
+
/**
|
|
28
|
+
* File extensions to compress
|
|
29
|
+
* @default ['js', 'css', 'html', 'json', 'svg', 'xml']
|
|
30
|
+
*/
|
|
31
|
+
extensions?: string[];
|
|
32
|
+
/**
|
|
33
|
+
* Enable chunk size warnings
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
chunkSizeWarning?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Maximum chunk size before warning (in KB)
|
|
39
|
+
* @default 250
|
|
40
|
+
*/
|
|
41
|
+
maxChunkSize?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Enable route-based code splitting
|
|
44
|
+
* @default true
|
|
45
|
+
*/
|
|
46
|
+
routeCodeSplitting?: boolean;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface OlovaOptions {
|
|
50
|
+
/**
|
|
51
|
+
* Static paths to pre-render at build time
|
|
52
|
+
*/
|
|
53
|
+
staticPaths?: string[];
|
|
54
|
+
/**
|
|
55
|
+
* Performance optimization options
|
|
56
|
+
*/
|
|
57
|
+
performance?: PerformanceOptions & {
|
|
58
|
+
/**
|
|
59
|
+
* Enable all performance optimizations
|
|
60
|
+
* @default true
|
|
61
|
+
*/
|
|
62
|
+
enabled?: boolean;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
declare function olova(options?: OlovaOptions): any;
|
|
66
|
+
|
|
67
|
+
export { type OlovaOptions, olova };
|
package/dist/olova.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Olova Performance Optimizations Plugin
|
|
3
|
+
*
|
|
4
|
+
* Provides build-time optimizations for SSG:
|
|
5
|
+
* - Code splitting strategies
|
|
6
|
+
* - Asset compression (gzip/brotli)
|
|
7
|
+
* - Chunk size analysis
|
|
8
|
+
* - Resource prioritization
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
interface PerformanceOptions {
|
|
12
|
+
/**
|
|
13
|
+
* Enable gzip compression for assets
|
|
14
|
+
* @default true
|
|
15
|
+
*/
|
|
16
|
+
gzip?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Enable brotli compression for assets
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
brotli?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Minimum file size (in bytes) to compress
|
|
24
|
+
* @default 1024 (1KB)
|
|
25
|
+
*/
|
|
26
|
+
threshold?: number;
|
|
27
|
+
/**
|
|
28
|
+
* File extensions to compress
|
|
29
|
+
* @default ['js', 'css', 'html', 'json', 'svg', 'xml']
|
|
30
|
+
*/
|
|
31
|
+
extensions?: string[];
|
|
32
|
+
/**
|
|
33
|
+
* Enable chunk size warnings
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
chunkSizeWarning?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Maximum chunk size before warning (in KB)
|
|
39
|
+
* @default 250
|
|
40
|
+
*/
|
|
41
|
+
maxChunkSize?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Enable route-based code splitting
|
|
44
|
+
* @default true
|
|
45
|
+
*/
|
|
46
|
+
routeCodeSplitting?: boolean;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface OlovaOptions {
|
|
50
|
+
/**
|
|
51
|
+
* Static paths to pre-render at build time
|
|
52
|
+
*/
|
|
53
|
+
staticPaths?: string[];
|
|
54
|
+
/**
|
|
55
|
+
* Performance optimization options
|
|
56
|
+
*/
|
|
57
|
+
performance?: PerformanceOptions & {
|
|
58
|
+
/**
|
|
59
|
+
* Enable all performance optimizations
|
|
60
|
+
* @default true
|
|
61
|
+
*/
|
|
62
|
+
enabled?: boolean;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
declare function olova(options?: OlovaOptions): any;
|
|
66
|
+
|
|
67
|
+
export { type OlovaOptions, olova };
|