webpack
這是打包好的文件
<!DOCTYPE html>
<html>
<head lang="en">
? ?<meta charset="UTF-8">
? ?<title><%= htmlWebpackPlugin.options.title %></title>
? ?<!--<script src="<%= htmlWebpackPlugin.files.chunks.main.entry.substr(htmlWebpackPlugin.files.publicPath.length) %>"></script>-->
</head>
<body>
<% for (var k in htmlWebpackPlugin.files.chunks) { %>
<% if(k !== "main") { %>
<script src="<%= htmlWebpackPlugin.files.chunks[k].entry %>"></script>
<% } %>
<% } %>
</body>
</html>
為什么不能正常輸出
2017-07-17
有問必答不知道!