Skip to content

Commit 9dfdb15

Browse files
committed
chore: Config Webpack for production...
1 parent 4406486 commit 9dfdb15

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

webpack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin');
55

66
module.exports = {
77
entry: './src/index.jsx',
8-
mode: 'development',
8+
mode: 'production',
99
module: {
1010
rules: [
1111
{
@@ -52,6 +52,8 @@ module.exports = {
5252
plugins: [
5353
new webpack.HotModuleReplacementPlugin(),
5454
new HtmlWebpackPlugin(),
55-
new CleanWebpackPlugin(),
55+
new CleanWebpackPlugin({
56+
template: './public/index.html',
57+
}),
5658
],
5759
};

0 commit comments

Comments
 (0)