Skip to content

Commit 685ba0f

Browse files
committed
[INTERNAL] Change webpack js bundles directory
1 parent ce28332 commit 685ba0f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
File renamed without changes.

templates/hello_world.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<!-- this script is placed AFTER the element that React will interact -->
6464
<!-- in this example the element with id = "react_buttons" -->
6565
<!-- REACT elements MUST be included BEFORE the react bundle -->
66-
<script src="{% static '/js/bundle.js' %}"></script>
66+
<script src="{% static '/js/bundles/index.js' %}"></script>
6767
</div>
6868
<!-- end buttons wrapper section -->
6969

webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ var path = require("path");
44
module.exports = {
55
entry: { components: glob.sync("./assets/components/**/*.js") }, // path to input files
66
output: {
7-
filename: "bundle.js", // output bundle file name
8-
path: path.resolve(__dirname, "./static/js"), // path to our Django static directory
7+
filename: "index.js", // output bundle file name
8+
path: path.resolve(__dirname, "./static/js/bundles"), // path to our Django static directory
99
},
1010
module: {
1111
rules: [

0 commit comments

Comments
 (0)