Skip to content

Commit

Permalink
update vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
alsyx committed Oct 21, 2024
1 parent eb835bf commit 1d5f469
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/templates/core/base.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load static vite %}

{% vite_css 'index.css' %}
{% vite_css 'styles.scss' %}
{% vite_js 'index.js' %}
{% vite_local 'index.js' %}
<h1>Identity Service</h1>
Expand Down
2 changes: 1 addition & 1 deletion core/templatetags/vite.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def vite_css(context, filename: str) -> str:
return ""

return mark_safe(
f'<link rel="stylesheet" href="{static(manifest[filename]["css"])}">'
f'<link rel="stylesheet" href="{static(manifest[filename]["file"])}">'
)


Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineConfig({
Outdir: "dist",
manifest: "manifest.json",
rollupOptions: {
input: "frontend/index.js",
input: ["frontend/index.js", "frontend/styles.scss"],
},
},
});

0 comments on commit 1d5f469

Please sign in to comment.