Files
three-dxf/webpack.common.js

15 lines
357 B
JavaScript

const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
filename: 'three-dxf.js',
path: path.resolve(__dirname, 'dist'),
library: 'ThreeDxf',
libraryTarget: 'umd',
globalObject: 'typeof self !== \'undefined\' ? self : this'
},
externals: {
three: 'THREE'
},
};