literyz-js/webpack.config.js

17 lines
453 B
JavaScript
Raw Normal View History

2024-08-08 11:13:28 +00:00
const path = require('path');
module.exports = {
entry: {
extensions: './src/extensions.js',
graphics: './src/graphics.js',
project: './src/project.js'
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'dist'),
library: 'LiteRyzJS', // The global variable name under which the classes will be exposed
libraryTarget: 'umd',
globalObject: 'this'
},
mode: 'production', // development|production
};