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} */
|
/** @type {import('webpack').Configuration} */
|
||||||
export const publicLibConfig = {
|
export const publicLibConfig = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './public/lib.js',
|
entry: './public/lib.js',
|
||||||
cache: true,
|
cache: {
|
||||||
|
type: 'filesystem',
|
||||||
|
cacheDirectory: path.resolve(process.cwd(), 'dist/webpack'),
|
||||||
|
},
|
||||||
devtool: false,
|
devtool: false,
|
||||||
module: {},
|
module: {},
|
||||||
stats: {
|
stats: {
|
||||||
|
Reference in New Issue
Block a user