From adf0f97931e06a2b9ce55b5e0b1106c62dbd9b38 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 6 Mar 2023 08:46:49 +0300 Subject: vnext: html-webpack-plugin --- vnext/webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vnext') diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js index a4bc0081..821ce2f7 100644 --- a/vnext/webpack.config.js +++ b/vnext/webpack.config.js @@ -1,4 +1,5 @@ const ESLintPlugin = require('eslint-webpack-plugin'); +const HtmlWebpackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const TerserPlugin = require('terser-webpack-plugin'); @@ -49,6 +50,9 @@ module.exports = (env, argv) => { }] }, plugins: [ + new HtmlWebpackPlugin({ + template: __dirname + '/src/index.html' + }), ], resolve: { symlinks: false, -- cgit v1.2.3