const?path?=?require('path');
const?HtmlWebpackPlugin?=?require('html-webpack-plugin');
module.exports?=?{
????entry:?{
????????main:'./src/script/main.js',
????????a:'./src/script/a.js'
????},
????output:?{
????????path:path.join(__dirname,'./dist'),
????????filename:?'js/[name].js'
????},
????plugins:?[
????????new?HtmlWebpackPlugin({
????????????filename:?'index.html',
????????????template:'index.html',
????????????inject:"head",
????????????title:"webpack?is?good",
????????????data:"1"
????????})
????],
}
2018-11-14
template 那裡開頭"h"要小寫:?
htmlWebpackPlugin
使用 webpack 4.25.1
2018-09-10
安裝
插件了嗎
2018-09-02
我也一樣,請問樓主找到什么原因了嗎?
2018-08-08
我猜想是不是插件沒安裝好