SillyTavern/webpack.config.js
Cohee afb4acc19b Revert "Webpack: cache lib.js to disk to prevent occasional OOM"
This reverts commit f630c8892a48b3970fd8b38a8edb64333d399d88.
2024-11-28 22:45:45 +02:00

31 lines
653 B
JavaScript

import process from 'node:process';
import path from 'node:path';
/** @type {import('webpack').Configuration} */
export const publicLibConfig = {
mode: 'production',
entry: './public/lib.js',
cache: {
type: 'filesystem',
cacheDirectory: path.resolve(process.cwd(), 'dist/webpack'),
},
devtool: false,
watch: false,
module: {},
stats: {
preset: 'minimal',
assets: false,
modules: false,
},
experiments: {
outputModule: true,
},
performance: {
hints: false,
},
output: {
filename: 'lib.js',
libraryTarget: 'module',
},
};