UNPKG

gg-editor

Version:

A visual graph editor based on G6 and React

23 lines (18 loc) 458 B
const path = require('path'); const { merge } = require('lodash'); const baseConfig = require('./webpack.config.base'); const entry = { bundle: path.resolve(__dirname, '..', 'src/index.js'), }; const devtool = 'cheap-module-eval-source-map'; const output = { path: path.resolve(__dirname, '..', 'dist'), filename: '[name].js', library: 'GGEditor', libraryTarget: 'umd', }; module.exports = merge(baseConfig, { entry, devtool, output, });