Skip to content
Snippets Groups Projects
Verified Commit 79fd0e98 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix module paths for Vite dev server

parent 5cd2c72e
No related branches found
No related tags found
1 merge request!1132Resolve "Evaluate use of Vite instead of Webpack"
......@@ -224,7 +224,7 @@
{{ request.site.preferences.theme__primary|json_script:"primary-color" }}
{{ request.site.preferences.theme__secondary|json_script:"secondary-color" }}
<script type="text/javascript" src="{% static 'js/search.js' %}"></script>
{% vite_asset '../aleksis/core/assets/index.js' %}
{% vite_asset 'aleksis/core/assets/index.js' %}
{% block extra_body %}{% endblock %}
</body>
</html>
......@@ -9,6 +9,7 @@ import graphql from '@rollup/plugin-graphql';
const django_values = JSON.parse(fs.readFileSync("./django-vite-values.json"));
export default defineConfig({
root: path.resolve(".."),
base: django_values.static_url,
build: {
outDir: path.resolve("./vite_bundles/"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment