NervJS/nerv-webpack-boilerplate

npm run deploy 样式报错

dericgit opened this issue · 2 comments

需要在 index.html 正确引用css
<% cssFiles.forEach(cssFile => { %> <link href="<%= cssFile.path %>" rel="stylesheet"> <% }) %>

需要在index.html 修改引入css的代码:
<% for (var css in htmlWebpackPlugin.files.css) { %> <link href="<%= htmlWebpackPlugin.files.css[css].path %>" rel="stylesheet"> <% } %>

Ahh nice, thats going to help me :)