mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Improve readability and usability
This commit is contained in:
@ -16,9 +16,10 @@ class ManifestPostProcessingStorage(ManifestStaticFilesStorage):
|
||||
# This name swap has to be done here
|
||||
# Otherwise, the manifest isn't aware of the file and can't work properly
|
||||
if settings.DEBUG:
|
||||
# In production, the bundler manifest is used at compile time, we don't need to convert anything
|
||||
try:
|
||||
manifest = JSBundler.get_manifest()
|
||||
except Exception as e:
|
||||
except FileNotFoundError as e:
|
||||
raise Exception(
|
||||
"Error loading manifest file, the bundler seems to be busy"
|
||||
) from e
|
||||
@ -27,7 +28,6 @@ class ManifestPostProcessingStorage(ManifestStaticFilesStorage):
|
||||
name = converted
|
||||
|
||||
path = Path(name)
|
||||
# Call bundler manifest
|
||||
if path.suffix == ".scss":
|
||||
# Compile scss files automatically in debug mode
|
||||
if settings.DEBUG:
|
||||
|
Reference in New Issue
Block a user