Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (37 sloc) 995 Bytes
/* global __dirname, require, module*/
const webpack = require('webpack');
const path = require('path');
let libraryName = 'js2flowchart';
let 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,
globalObject: "(typeof window !== 'undefined' ? window : this)"
},
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']
},
mode: 'development'
};
module.exports = config;