Skip to content

Commit

Permalink
👌 IMPROVE: Updated minified CSS file name
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdevore committed Jan 6, 2025
1 parent a9e6c02 commit eda3889
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions stattic.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ def minify_assets(self):
js_dir = os.path.join(self.assets_output_dir, 'js')

# Output paths for minified files
minified_css_path = os.path.join(css_dir, 'main.min.css')
minified_js_path = os.path.join(js_dir, 'main.min.js')
minified_css_path = os.path.join(css_dir, 'stattic.min.css')
minified_js_path = os.path.join(js_dir, 'stattic.min.js')

# Minify CSS files
all_css_content = ""
Expand Down
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<!-- Use relative_path to correctly reference assets -->
<link href="{{ relative_path }}assets/css/tailwind.min.css" rel="stylesheet preload" as="style">
{% if minify %}
<link href="{{ relative_path }}assets/css/main.min.css" rel="stylesheet preload" as="style">
<link href="{{ relative_path }}assets/css/stattic.min.css" rel="stylesheet preload" as="style">
{% else %}
<link href="{{ relative_path }}assets/css/stattic.css" rel="stylesheet preload" as="style">
<link href="{{ relative_path }}assets/css/fonts.css" rel="stylesheet preload" as="style">
Expand Down

0 comments on commit eda3889

Please sign in to comment.