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 @@
1import process from 'node:process';
2import path from 'node:path';
3
1/** @type {import('webpack').Configuration} */4/** @type {import('webpack').Configuration} */
2export const publicLibConfig = {5export const publicLibConfig = {
3 mode: 'production',6 mode: 'production',
4 entry: './public/lib.js',7 entry: './public/lib.js',
5 cache: true,8 cache: {
9 type: 'filesystem',
10 cacheDirectory: path.resolve(process.cwd(), 'dist/webpack'),
11 },
6 devtool: false,12 devtool: false,
7 module: {},13 module: {},
8 stats: {14 stats: {