webpack: Cache bundles to filesystem

1838bf481cdf1ad19a29dd9f5a8211b2b7fe3b3a

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +7 -1Ignore whitespace
webpack.config.js+7 -1
@@ -1,8 +1,14 @@
1+import process from 'node:process';
2+import path from 'node:path';
3+
14/** @type {import('webpack').Configuration} */
25export const publicLibConfig = {
36 mode: 'production',
47 entry: './public/lib.js',
58 cache: true,{
9+ type: 'filesystem',
10+ cacheDirectory: path.resolve(process.cwd(), 'dist/webpack'),
11+ },
612 devtool: false,
713 module: {},
814 stats: {