SillyTavern/webpack.config.js

31 lines
653 B
JavaScript
Raw Normal View History

2024-10-17 00:16:56 +02:00
import process from 'node:process';
import path from 'node:path';
/** @type {import('webpack').Configuration} */
export const publicLibConfig = {
mode: 'production',
entry: './public/lib.js',
2024-10-17 00:16:56 +02:00
cache: {
type: 'filesystem',
cacheDirectory: path.resolve(process.cwd(), 'dist/webpack'),
},
devtool: false,
2024-10-17 19:59:42 +02:00
watch: false,
2024-10-16 22:11:13 +02:00
module: {},
stats: {
preset: 'minimal',
assets: false,
modules: false,
},
experiments: {
outputModule: true,
},
2024-10-16 23:49:06 +02:00
performance: {
hints: false,
},
output: {
filename: 'lib.js',
libraryTarget: 'module',
},
};