We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4406486 commit 9dfdb15Copy full SHA for 9dfdb15
webpack.config.js
@@ -5,7 +5,7 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin');
5
6
module.exports = {
7
entry: './src/index.jsx',
8
- mode: 'development',
+ mode: 'production',
9
module: {
10
rules: [
11
{
@@ -52,6 +52,8 @@ module.exports = {
52
plugins: [
53
new webpack.HotModuleReplacementPlugin(),
54
new HtmlWebpackPlugin(),
55
- new CleanWebpackPlugin(),
+ new CleanWebpackPlugin({
56
+ template: './public/index.html',
57
+ }),
58
],
59
};
0 commit comments