v1.0 with SW PWA enabled

This commit is contained in:
Blomios
2026-01-01 17:40:53 +01:00
parent 1c0e22aac1
commit 3c8bebb2ad
29775 changed files with 2197201 additions and 119080 deletions

View File

@ -2,7 +2,7 @@ import path from 'node:path';
import fs__default from 'node:fs';
import { performance } from 'node:perf_hooks';
import { EventEmitter } from 'events';
import { B as colors, v as createLogger, r as resolveConfig } from './chunks/dep-C6uTJdX2.js';
import { B as colors, v as createLogger, r as resolveConfig } from './chunks/dep-BK3b2jBa.js';
import { VERSION } from './constants.js';
import 'node:fs/promises';
import 'node:url';
@ -731,7 +731,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
`[boolean] force the optimizer to ignore the cache and re-bundle`
).action(async (root, options) => {
filterDuplicateOptions(options);
const { createServer } = await import('./chunks/dep-C6uTJdX2.js').then(function (n) { return n.F; });
const { createServer } = await import('./chunks/dep-BK3b2jBa.js').then(function (n) { return n.F; });
try {
const server = await createServer({
root,
@ -823,7 +823,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
`[boolean] force empty outDir when it's outside of root`
).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).action(async (root, options) => {
filterDuplicateOptions(options);
const { build } = await import('./chunks/dep-C6uTJdX2.js').then(function (n) { return n.G; });
const { build } = await import('./chunks/dep-BK3b2jBa.js').then(function (n) { return n.G; });
const buildOptions = cleanOptions(options);
try {
await build({
@ -852,7 +852,7 @@ cli.command("optimize [root]", "pre-bundle dependencies").option(
).action(
async (root, options) => {
filterDuplicateOptions(options);
const { optimizeDeps } = await import('./chunks/dep-C6uTJdX2.js').then(function (n) { return n.E; });
const { optimizeDeps } = await import('./chunks/dep-BK3b2jBa.js').then(function (n) { return n.E; });
try {
const config = await resolveConfig(
{
@ -878,7 +878,7 @@ ${e.stack}`),
cli.command("preview [root]", "locally preview production build").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--strictPort", `[boolean] exit if specified port is already in use`).option("--open [path]", `[boolean | string] open browser on startup`).option("--outDir <dir>", `[string] output directory (default: dist)`).action(
async (root, options) => {
filterDuplicateOptions(options);
const { preview } = await import('./chunks/dep-C6uTJdX2.js').then(function (n) { return n.H; });
const { preview } = await import('./chunks/dep-BK3b2jBa.js').then(function (n) { return n.H; });
try {
const server = await preview({
root,