From fadc59df548160ee228974fe95c45a050ab688e5 Mon Sep 17 00:00:00 2001 From: JohnPetros Date: Sun, 27 Oct 2024 20:14:42 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config:=20fix=20dev=20webp?= =?UTF-8?q?ack=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webpack.config.dev.js | 1 + webpack.config.prod.js | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/webpack.config.dev.js b/webpack.config.dev.js index 7e596ce..73aeef1 100644 --- a/webpack.config.dev.js +++ b/webpack.config.dev.js @@ -2,6 +2,7 @@ const path = require("path") const { merge } = require("webpack-merge") const webpackCommonConfig = require("./webpack.config") +const HtmlWebapackPlugin = require("html-webpack-plugin") module.exports = merge(webpackCommonConfig, { mode: 'development', diff --git a/webpack.config.prod.js b/webpack.config.prod.js index 45d3dad..5582e04 100644 --- a/webpack.config.prod.js +++ b/webpack.config.prod.js @@ -2,7 +2,6 @@ const path = require("path") const { merge } = require("webpack-merge") const webpackCommonConfig = require("./webpack.config") -const HtmlWebapackPlugin = require("html-webpack-plugin") const MiniCssExtractPlugin = require("mini-css-extract-plugin") const CssMinimizerPlugin = require("css-minimizer-webpack-plugin") const { CleanWebpackPlugin } = require("clean-webpack-plugin") @@ -37,9 +36,5 @@ module.exports = merge(webpackCommonConfig, { new MiniCssExtractPlugin({ filename: 'styles.[contenthash].css' }), - new HtmlWebapackPlugin({ - filename: 'index.html', - template: './src/index.html' - }), ] }) \ No newline at end of file