There was an error while loading. Please reload this page.
1 parent 73bca2f commit 7fe30adCopy full SHA for 7fe30ad
webpack.config.js
@@ -3,7 +3,7 @@ const path = require('path')
3
// 載入 webpack 模組
4
const webpack = require('webpack')
5
// 載入 HtmlWebpackPlugin 插件
6
-const htmlWebpackPlugin = require('html-webpack-plugin')
+const HtmlWebpackPlugin = require('html-webpack-plugin')
7
8
// Webpack 設定值
9
// 定義開發與正式共用的設定值
@@ -75,7 +75,7 @@ const webpackConfig = {
75
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
76
}),
77
// 動態產生 HTML 並自動引入輸出後的 Entry 檔案
78
- new htmlWebpackPlugin({
+ new HtmlWebpackPlugin({
79
// 依據的模板檔案路徑(基於 context)
80
template: './index.html',
81
// 要引入的 Entry 名稱
0 commit comments