diff options
author | Vitaly Takmazov | 2023-03-06 08:46:49 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-03-06 08:46:49 +0300 |
commit | adf0f97931e06a2b9ce55b5e0b1106c62dbd9b38 (patch) | |
tree | f2285fdf9633488a33892001e074b92bb57cd60a /vnext/webpack.config.js | |
parent | 5c3c6b9e3e12b28efce9937fde29490f7d5b7a59 (diff) |
vnext: html-webpack-plugin
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r-- | vnext/webpack.config.js | 4 |
1 files changed, 4 insertions, 0 deletions
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, |