@jameshclrk/rxdb-hooks
Version:
React hooks for integrating with RxDB
35 lines (32 loc) • 652 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const config = {
mode: 'development',
entry: path.resolve(__dirname, './index.tsx'),
output: {
path: path.resolve(__dirname, 'dist'),
},
devServer: {
open: true,
host: 'localhost',
},
plugins: [
new HtmlWebpackPlugin({
template: path.resolve(__dirname, './index.html'),
}),
],
module: {
rules: [
{
test: /\.(ts|tsx)$/i,
loader: 'ts-loader',
exclude: ['/node_modules/'],
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '...'],
},
};
module.exports = config;