mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-11-30 22:45:46 +01:00
18 lines
527 B
JavaScript
18 lines
527 B
JavaScript
// frontend/config-overrides.js
|
|
const path = require('path');
|
|
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
|
|
|
|
module.exports = function override(config) {
|
|
// Erlaube Imports außerhalb von src/
|
|
config.resolve.plugins = config.resolve.plugins.filter(
|
|
plugin => !(plugin instanceof ModuleScopePlugin)
|
|
);
|
|
|
|
// Alias konfigurieren
|
|
config.resolve.alias = {
|
|
...config.resolve.alias,
|
|
'@premium-frontend': path.resolve(__dirname, '../premium/frontendPRO/src')
|
|
};
|
|
|
|
return config;
|
|
}; |