diff --git a/webpack_loader/config.py b/webpack_loader/config.py index 2ae9842a..9ce44feb 100644 --- a/webpack_loader/config.py +++ b/webpack_loader/config.py @@ -22,10 +22,11 @@ user_specified_entries = getattr(settings, 'WEBPACK_LOADER', {'DEFAULT': {}}) -user_config = dict( - (name, dict(DEFAULT_CONFIG['DEFAULT'], **cfg)) +user_config = { + name: dict(DEFAULT_CONFIG['DEFAULT'], **cfg) for name, cfg in user_specified_entries.items() -) +} + for entry in user_config.values(): entry['ignores'] = [re.compile(I) for I in entry['IGNORE']]