Skip to content

Commit 7fe30ad

Browse files
committed
Update variable name
1 parent 73bca2f commit 7fe30ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require('path')
33
// 載入 webpack 模組
44
const webpack = require('webpack')
55
// 載入 HtmlWebpackPlugin 插件
6-
const htmlWebpackPlugin = require('html-webpack-plugin')
6+
const HtmlWebpackPlugin = require('html-webpack-plugin')
77

88
// Webpack 設定值
99
// 定義開發與正式共用的設定值
@@ -75,7 +75,7 @@ const webpackConfig = {
7575
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
7676
}),
7777
// 動態產生 HTML 並自動引入輸出後的 Entry 檔案
78-
new htmlWebpackPlugin({
78+
new HtmlWebpackPlugin({
7979
// 依據的模板檔案路徑(基於 context)
8080
template: './index.html',
8181
// 要引入的 Entry 名稱

0 commit comments

Comments
 (0)