2024-10-16 21:00:14 +02:00
|
|
|
/** @type {import('webpack').Configuration} */
|
|
|
|
export const publicLibConfig = {
|
|
|
|
mode: 'production',
|
|
|
|
entry: './public/lib.js',
|
|
|
|
cache: true,
|
|
|
|
devtool: 'source-map',
|
2024-10-16 22:11:13 +02:00
|
|
|
module: {},
|
2024-10-16 23:49:06 +02:00
|
|
|
stats: 'minimal',
|
2024-10-16 21:00:14 +02:00
|
|
|
experiments: {
|
|
|
|
outputModule: true,
|
|
|
|
},
|
2024-10-16 23:49:06 +02:00
|
|
|
performance: {
|
|
|
|
hints: false,
|
|
|
|
},
|
2024-10-16 21:00:14 +02:00
|
|
|
output: {
|
|
|
|
filename: 'lib.js',
|
|
|
|
libraryTarget: 'module',
|
|
|
|
},
|
|
|
|
};
|