UNPKG

react-lazy-paginated-tree

Version:

Customizable React Tree-View with Lazy Loading and Pagination

50 lines (48 loc) 951 B
const path = require('path'); module.exports = { mode: 'development', entry: './src/index.js', devServer: { contentBase: './dist', }, output: { path: path.resolve(__dirname, 'dist'), filename: 'index.js', library: 'react-lazy-paginated-tree', libraryTarget: 'umd', }, externals: [ { react: { root: 'React', commonjs2: 'react', commonjs: 'react', amd: 'react', }, 'react-dom': { root: 'ReactDOM', commonjs2: 'react-dom', commonjs: 'react-dom', amd: 'react-dom', }, }, '@material-ui/core', /@material-ui\/core\/*./, ], resolve: { extensions: ['.js', '.jsx', '.css'], }, module: { rules: [ { test: /\.jsx?$/, exclude: /(node_modules)/, use: ['babel-loader'], }, { test: /\.css$/, use: ['style-loader', 'css-loader'], }, ], }, };