UNPKG

dino-graph

Version:

a simple dynamic graphing library

36 lines (34 loc) 633 B
const webpack = require( 'webpack' ) const path = require( 'path' ) module.exports = { entry: [ './src/dino-graph.js' ], module: { rules: [ { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ }, { test: /\.(js|vue)$/, loader: 'eslint-loader', exclude: /node_modules/ } ] }, plugins: [ new webpack.DefinePlugin( { 'NODE_ENV': JSON.stringify( process.env.NODE_ENV ) } ), ], optimization: { splitChunks: { chunks: "initial" } }, watch: true, output: { path: path.resolve( __dirname, 'dist/' ), filename: 'dino-graph.js', libraryTarget: 'umd', }, }