@navelpluisje/pcb-components
Version:
A library with native components. They are all pcb components, like a dip-switch, resitor etc.
31 lines (27 loc) • 652 B
JavaScript
const path = require('path');
const commonConfig = require('./common.config');
const umdConfig = {
entry: './src/index.js',
output: {
filename: 'umd.js',
path: path.resolve(__dirname, '../dist'),
library: 'npComponents',
libraryTarget: 'umd',
},
mode: 'production',
target: 'node',
};
const cjsConfig = {
entry: './src/index.js',
output: {
filename: 'commonjs.js',
path: path.resolve(__dirname, '../dist'),
library: 'npComponents',
libraryTarget: 'commonjs',
},
mode: 'production',
};
module.exports = [
Object.assign({}, commonConfig, umdConfig),
Object.assign({}, commonConfig, cjsConfig),
];