diff --git a/package.json b/package.json index ff63be72..1f6ed316 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "types": "tsc --noEmit" }, "dependencies": { - "@alveusgg/data": "0.69.0", + "@alveusgg/data": "0.69.1-0-pre.610674a0072c44c904512733dd14ba0893ce9533", "@headlessui/react": "^2.2.9", "luxon": "^3.7.2", "react": "^19.2.1", @@ -81,6 +81,9 @@ "zip-webpack-plugin": "^4.0.3" }, "main": "public/index.html", + "sideEffects": [ + "**/*.css" + ], "browserslist": { "production": [ ">0.2%", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index da585189..26ca9b11 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,8 +13,8 @@ importers: .: dependencies: '@alveusgg/data': - specifier: 0.69.0 - version: 0.69.0(tailwindcss@4.1.17)(zod@4.1.13) + specifier: 0.69.1-0-pre.610674a0072c44c904512733dd14ba0893ce9533 + version: 0.69.1-0-pre.610674a0072c44c904512733dd14ba0893ce9533(tailwindcss@4.1.17)(zod@4.1.13) '@headlessui/react': specifier: ^2.2.9 version: 2.2.9(react-dom@19.2.1(react@19.2.1))(react@19.2.1) @@ -164,8 +164,8 @@ packages: resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} engines: {node: '>=10'} - '@alveusgg/data@0.69.0': - resolution: {integrity: sha512-tfPIyH+6sir0jhtKKXKq8mHeH9EoTGX6w7OA1LRed7XENrebEav5RrQD69uvw7Fjy3EolLzG9z0ZDhO+6Znn7g==, tarball: https://npm.pkg.github.com/download/@alveusgg/data/0.69.0/58545c7650e34816f45d3f42c72d7a44d83ca879} + '@alveusgg/data@0.69.1-0-pre.610674a0072c44c904512733dd14ba0893ce9533': + resolution: {integrity: sha512-mMEK3x74z2gjnc61kQ1TVJcyRa7O+FNPMpSWD3Ufm9J3ZPNjKKubw5auYO+czKQZNTpi4UIwYad9KnrLVfMcqg==, tarball: https://npm.pkg.github.com/download/@alveusgg/data/0.69.1-0-pre.610674a0072c44c904512733dd14ba0893ce9533/051069b277f93dbb3f8841417abf91f877effa6b} peerDependencies: tailwindcss: ^4.0.0 zod: ^4.0.0 @@ -3332,7 +3332,7 @@ snapshots: '@alloc/quick-lru@5.2.0': {} - '@alveusgg/data@0.69.0(tailwindcss@4.1.17)(zod@4.1.13)': + '@alveusgg/data@0.69.1-0-pre.610674a0072c44c904512733dd14ba0893ce9533(tailwindcss@4.1.17)(zod@4.1.13)': dependencies: tailwindcss: 4.1.17 zod: 4.1.13 diff --git a/webpack.config.ts b/webpack.config.ts index 8989b1d7..24430cd0 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -19,58 +19,58 @@ const env = { ...(isDev && dotenv.config({ path: "./.env.development" }).parsed), }; -class UnusedAssetsPlugin { - apply(compiler: webpack.Compiler) { - if (compiler.options.mode && compiler.options.mode !== "production") return; +// class UnusedAssetsPlugin { +// apply(compiler: webpack.Compiler) { +// if (compiler.options.mode && compiler.options.mode !== "production") return; - compiler.hooks.compilation.tap( - "UnusedAssetsPlugin", - (compilation: webpack.Compilation) => { - compilation.hooks.processAssets.tap( - { - name: "UnusedAssetsPlugin", - stage: webpack.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_TRANSFER, - }, - () => { - // Get all JS source code - const jsSource = Object.entries(compilation.assets) - .filter( - ([name]) => name.endsWith(".js") && !name.endsWith(".map"), - ) - .map(([, source]) => source.source().toString()) - .join("\n"); +// compiler.hooks.compilation.tap( +// "UnusedAssetsPlugin", +// (compilation: webpack.Compilation) => { +// compilation.hooks.processAssets.tap( +// { +// name: "UnusedAssetsPlugin", +// stage: webpack.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_TRANSFER, +// }, +// () => { +// // Get all JS source code +// const jsSource = Object.entries(compilation.assets) +// .filter( +// ([name]) => name.endsWith(".js") && !name.endsWith(".map"), +// ) +// .map(([, source]) => source.source().toString()) +// .join("\n"); - // Find all asset modules and check if they're referenced in the final JS - const unusedAssets = Array.from(compilation.modules) - .filter((module) => /^asset(\/.+)?$/.test(module.type)) - .map((module) => module.buildInfo?.filename) - .filter( - (filename): filename is string => - !!filename && !jsSource.includes(filename), - ); - if (unusedAssets.length === 0) return; +// // Find all asset modules and check if they're referenced in the final JS +// const unusedAssets = Array.from(compilation.modules) +// .filter((module) => /^asset(\/.+)?$/.test(module.type)) +// .map((module) => module.buildInfo?.filename) +// .filter( +// (filename): filename is string => +// !!filename && !jsSource.includes(filename), +// ); +// if (unusedAssets.length === 0) return; - // Remove unused assets from the compilation - unusedAssets.forEach((asset) => { - compilation.deleteAsset(asset); - }); - console.warn( - [ - "", - `UnusedAssetsPlugin: Removed ${unusedAssets.length} unused assets:`, - ...unusedAssets.slice(0, 10).map((asset) => ` - ${asset}`), - ...(unusedAssets.length > 10 - ? [` ...and ${unusedAssets.length - 10} more`] - : []), - "", - ].join("\n"), - ); - }, - ); - }, - ); - } -} +// // Remove unused assets from the compilation +// unusedAssets.forEach((asset) => { +// compilation.deleteAsset(asset); +// }); +// console.warn( +// [ +// "", +// `UnusedAssetsPlugin: Removed ${unusedAssets.length} unused assets:`, +// ...unusedAssets.slice(0, 10).map((asset) => ` - ${asset}`), +// ...(unusedAssets.length > 10 +// ? [` ...and ${unusedAssets.length - 10} more`] +// : []), +// "", +// ].join("\n"), +// ); +// }, +// ); +// }, +// ); +// } +// } const getTypeScriptLoader = () => ({ loader: "ts-loader", @@ -182,7 +182,7 @@ const config: webpack.Configuration = { // Enforce type checking on a separate process new ForkTsCheckerWebpackPlugin(), // Remove any unused assets after code optimization - new UnusedAssetsPlugin(), + // new UnusedAssetsPlugin(), // Enable react hot reloading in development isDev && new ReactRefreshWebpackPlugin({