js2flowchart
Version:
> Why? While I've been working on [Under-the-hood-ReactJS](https://github.com/Bogdan-Lyashenko/Under-the-hood-ReactJS) I spent enormous amount of time on creating schemes. Each change in code or flowchart affects all entire scheme instantly, forcing you t
43 lines (36 loc) • 937 B
JavaScript
/* global __dirname, require, module*/
const webpack = require('webpack');
const path = require('path');
let libraryName = 'js2flowchart';
let plugins = [], outputFile;
outputFile = libraryName + '.js';
const config = {
entry: __dirname + '/index.js',
devtool: 'source-map',
output: {
path: __dirname + '/dist',
filename: outputFile,
library: libraryName,
libraryTarget: 'umd',
umdNamedDefine: true
},
module: {
rules: [
{
test: /(\.jsx|\.js)$/,
loader: 'babel-loader',
exclude: /(node_modules|bower_components)/
}
]
},
resolve: {
modules: [
path.resolve('./node_modules'), path.resolve('./src'),
path.resolve('./src/shared'), path.resolve('./src/render'),
path.resolve('./src/builder'), path.resolve('./src/presentation-generator')
],
extensions: ['.json', '.js']
},
plugins: plugins
};
module.exports = config;