react-virtualized-sticky-tree
Version:
A React component for efficiently rendering tree like structures with support for position: sticky
37 lines (33 loc) • 816 B
JavaScript
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: path.join(__dirname, 'example', 'app.tsx'),
target: 'web',
mode: 'development',
output: {
path: path.resolve(__dirname, 'dist'),
publicPath: '/',
filename: 'app.bundle.js',
},
devServer: {
port: 9000
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.json'],
},
module: {
rules: [
{
test: /\.(ts|js)x?$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
],
},
plugins: [
new HtmlWebpackPlugin({
template: path.resolve(__dirname, 'example', 'index.html'),
hash: true
})
],
};