mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
webpack: Cache bundles to filesystem
This commit is contained in:
@ -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: {
|
||||
|
Reference in New Issue
Block a user