File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -618,5 +618,9 @@ <h3 class="ui header">Support project:</h3>
618
618
619
619
</ div >
620
620
621
+ < % if(htmlWebpackPlugin.files.chunks.bundle) { %>
622
+ < script src ="/static/dist/<%= htmlWebpackPlugin.files.chunks.bundle.entry %> "> </ script >
623
+ < % } %>
624
+
621
625
</ body >
622
626
</ html >
Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
5
5
6
6
module . exports = {
7
7
context : __dirname ,
8
- entry : "./App/index.js" ,
8
+ entry : {
9
+ "bundle" : "./App/index.js"
10
+ } ,
9
11
output : {
10
12
path : __dirname + "/dist" ,
11
13
filename : "bundle.js"
@@ -37,6 +39,7 @@ module.exports = {
37
39
} ,
38
40
plugins : [
39
41
new HtmlWebpackPlugin ( {
42
+ inject : false ,
40
43
template : './templates/index.html' ,
41
44
hash : true
42
45
} ) ,
You can’t perform that action at this time.
0 commit comments