using webpack #122

This commit is contained in:
Jonathan Hornung 2025-08-16 08:29:59 +02:00
commit 52930445fc
7 changed files with 128 additions and 120 deletions

21
webpack.libs.config.js Normal file
View file

@ -0,0 +1,21 @@
import OpenSCADLibrariesPlugin from './webpack-libs-plugin.js';
const buildMode = process.env.LIBS_BUILD_MODE || 'all';
/** @type {import('webpack').Configuration} */
const config = {
mode: 'none', // We're not actually building JS, just using webpack as a task runner
entry: './package.json', // Dummy entry point that exists
output: {
path: '/tmp', // Output to temp directory
filename: 'webpack-libs-temp.js', // This won't be used
},
plugins: [
new OpenSCADLibrariesPlugin({
buildMode: buildMode
}),
],
stats: 'minimal',
};
export default config;