File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<% for (var css in htmlWebpackPlugin .files .css ) { % >
2- < link href= " <%= htmlWebpackPlugin.files.css[css] %>" rel= " stylesheet" >
2+ < link href= " <%= webpackConfig.output.baseUrl %><%= htmlWebpackPlugin.files.css[css] %>" rel= " stylesheet" >
33< % } %>
Original file line number Diff line number Diff line change 11<% for (var chunk in htmlWebpackPlugin .files .chunks ) { % >
2- < script src= " <%= htmlWebpackPlugin.files.chunks[chunk].entry %>" defer>< / script>
2+ < script src= " <%= webpackConfig.output.baseUrl %><%= htmlWebpackPlugin.files.chunks[chunk].entry %>" defer>< / script>
33< % } %>
Original file line number Diff line number Diff line change @@ -329,7 +329,8 @@ module.exports = {
329329 output : {
330330 path : path . join ( __dirname , 'public/build' ) ,
331331 publicPath : '/build/' ,
332- filename : '[name].js'
332+ filename : '[name].js' ,
333+ baseUrl : '<%- url %>'
333334 } ,
334335
335336 resolve : {
You can’t perform that action at this time.
0 commit comments