Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run deploy 样式报错 #9

Open
dericgit opened this issue Aug 2, 2018 · 2 comments
Open

npm run deploy 样式报错 #9

dericgit opened this issue Aug 2, 2018 · 2 comments

Comments

@dericgit
Copy link

dericgit commented Aug 2, 2018

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

@tangj1206
Copy link

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

@ChristianHoffmannYoma
Copy link

Ahh nice, thats going to help me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants