Skip to content

Commit 7691de1

Browse files
committed
Correct path for bundle.js in template and webpack config.
1 parent 77e94ff commit 7691de1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/alloydflanagan/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</div>
4747

4848
{# Global javascript #}
49-
{# <script type="text/javascript" src="{% static '/app/dist/bundle.js' %}"></script> #}
49+
<script type="text/javascript" src="{% static 'dist/bundle.js' %}" defer="true"></script>
5050

5151
{% block extra_js %}
5252

app/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const webpack = require('webpack')
44
module.exports = {
55
entry: './alloydflanagan/static/src/index.js',
66
output: {
7-
path: path.resolve(__dirname, 'dist'),
7+
path: path.resolve(__dirname, './alloydflanagan/static/dist'),
88
filename: 'bundle.js'
99
},
1010
mode: 'development',

0 commit comments

Comments
 (0)