SillyTavern/webpack.config.js
2024-10-17 20:59:42 +03: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',
},
};