npm run deploy 样式报错
dericgit opened this issue · 2 comments
dericgit commented
需要在 index.html 正确引用css
<% cssFiles.forEach(cssFile => { %> <link href="<%= cssFile.path %>" rel="stylesheet"> <% }) %>
tangj1206 commented
需要在index.html 修改引入css的代码:
<% for (var css in htmlWebpackPlugin.files.css) { %> <link href="<%= htmlWebpackPlugin.files.css[css].path %>" rel="stylesheet"> <% } %>
ChristianHoffmannYoma commented
Ahh nice, thats going to help me :)