Enhance webpack configuration for improved performance and development experience. Add filesystem caching and watch options. Update KreditorSelector to handle prefilled data and improve state management. Refactor TransactionsTable to manage focus during dialog interactions. Update admin tables to manage focus restoration and improve dialog handling. Implement IBAN filtering in IbanSelectionFilter and enhance document rendering with Kreditor information. Update SQL schema to allow multiple IBANs for the same Kreditor and adjust API routes for better data handling.
This commit is contained in:
@@ -5,12 +5,20 @@ const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin'
|
||||
require('dotenv').config();
|
||||
|
||||
module.exports = {
|
||||
mode: process.env.NODE_ENV || 'development',
|
||||
entry: './client/src/index.js',
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
filename: 'bundle.js',
|
||||
publicPath: '/',
|
||||
},
|
||||
cache: {
|
||||
type: 'filesystem',
|
||||
buildDependencies: {
|
||||
config: [__filename],
|
||||
},
|
||||
cacheDirectory: path.resolve(__dirname, 'node_modules/.cache/webpack'),
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
@@ -72,6 +80,31 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
},
|
||||
watchOptions: {
|
||||
ignored: /node_modules/,
|
||||
aggregateTimeout: 300,
|
||||
poll: false,
|
||||
},
|
||||
snapshot: {
|
||||
managedPaths: [path.resolve(__dirname, 'node_modules')],
|
||||
immutablePaths: [],
|
||||
buildDependencies: {
|
||||
hash: true,
|
||||
timestamp: true,
|
||||
},
|
||||
module: {
|
||||
timestamp: true,
|
||||
hash: true,
|
||||
},
|
||||
resolve: {
|
||||
timestamp: true,
|
||||
hash: true,
|
||||
},
|
||||
resolveBuildDependencies: {
|
||||
timestamp: true,
|
||||
hash: true,
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.js', '.jsx'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user