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>
618618
619619</ div >
620620
621+ < % if(htmlWebpackPlugin.files.chunks.bundle) { %>
622+ < script src ="/static/dist/<%= htmlWebpackPlugin.files.chunks.bundle.entry %> "> </ script >
623+ < % } %>
624+
621625</ body >
622626</ html >
Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
55
66module . exports = {
77 context : __dirname ,
8- entry : "./App/index.js" ,
8+ entry : {
9+ "bundle" : "./App/index.js"
10+ } ,
911 output : {
1012 path : __dirname + "/dist" ,
1113 filename : "bundle.js"
@@ -37,6 +39,7 @@ module.exports = {
3739 } ,
3840 plugins : [
3941 new HtmlWebpackPlugin ( {
42+ inject : false ,
4043 template : './templates/index.html' ,
4144 hash : true
4245 } ) ,
You can’t perform that action at this time.
0 commit comments