UNPKG

@cbinsights/react-d3-graph

Version:

React component to build interactive and configurable graphs with d3 effortlessly

30 lines (28 loc) 787 B
const path = require('path'); const webpack = require('webpack'); const Visualizer = require('webpack-visualizer-plugin'); module.exports = { context: path.join(__dirname, 'src'), entry: './index.js', output: { path: __dirname + '/dist/', filename: 'rd3g.bundle.js' }, module: { rules: [ { test: /\.jsx?$/, exclude: /node_modules|sandbox/, loader: 'babel-loader', options: { presets: ['react', 'es2015', 'stage-0'], plugins: ['react-html-attrs'] } } ] }, resolve: { extensions: ['.js', '.jsx'] }, plugins: [new Visualizer({ filename: '../gen-docs/stats.html' })] };