webpack: Cache bundles to filesystem

This commit is contained in:
Cohee
2024-10-17 01:16:56 +03:00
parent a32fe00e34
commit 1838bf481c

View File

@ -1,8 +1,14 @@
import process from 'node:process';
import path from 'node:path';
/** @type {import('webpack').Configuration} */
export const publicLibConfig = {
mode: 'production',
entry: './public/lib.js',
cache: true,
cache: {
type: 'filesystem',
cacheDirectory: path.resolve(process.cwd(), 'dist/webpack'),
},
devtool: false,
module: {},
stats: {