Skip to content

Commit

Permalink
copy html from src dist
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonDark13 committed Dec 14, 2023
1 parent 6e1e8dd commit 91546d5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');


module.exports = {
entry: './src/index.js',
Expand All @@ -15,5 +17,10 @@ module.exports = {
},
],
},
plugins: [new MiniCssExtractPlugin()],
plugins: [new MiniCssExtractPlugin(),
new CopyWebpackPlugin({
patterns: [
{from: 'src/index.html', to: 'index.html'}
]
}),],
};

0 comments on commit 91546d5

Please sign in to comment.