亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

ERROR in Template execution failed: ReferenceError: htmlPlugin is not defined這是什么原因

ERROR in Template execution failed: ReferenceError: htmlPlugin is not defined這是什么原因。模板語法不能用嗎? 代碼如下:

<head>

? ? <title><%= htmlPlugin.options.title %></title>

? ? <meta charset="UTF-8" />

? ? <script src="<%= htmlPlugin.files.chunks.main.entry %>"></script>

</head>

-----------------------------

plugins:[

? ?new htmlPlugin({

? ? template:"index.html",

? ? filename:"index.html",

? ? inject:"head",

? ? title:"this is a.html",

? ? chunks:["a"]

? ?}),


? ?new htmlPlugin({

? ? template:"index.html",

? ? filename:"index.html",

? ? inject:"head",

? ? title:"this is b.html",

? ? chunks:["b"]


? ?}),


? ?new htmlPlugin({

? ? template:"index.html",

? ? filename:"index.html",

? ? inject:"head",

? ? title:"this is c.html",

? ? chunks:["c"]

? ?}),


?]

<%= htmlplugin.options.title=""></%=>

正在回答

3 回答

<%= htmlWebpackPlugin.options.title %>

1 回復 有任何疑惑可以回復我~

你這個問題解決了么,我也有同樣的問題呢

0 回復 有任何疑惑可以回復我~
#1

qq_天空之鏡_2

改成 htmlWebpackPlugin
2018-06-11 回復 有任何疑惑可以回復我~

模板中 htmlWebpack? 改為htmlWebpackPlugin

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

ERROR in Template execution failed: ReferenceError: htmlPlugin is not defined這是什么原因

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號