Changes
This commit is contained in:
parent
6c90cf3c0f
commit
5b68c8da04
14 changed files with 687 additions and 551 deletions
|
|
@ -3,6 +3,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
|
||||
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
|
||||
|
||||
module.exports = (env, argv) => {
|
||||
const isProduction = argv.mode === 'production';
|
||||
|
|
@ -54,6 +55,20 @@ module.exports = (env, argv) => {
|
|||
new CopyWebpackPlugin({
|
||||
patterns: [{ from: 'public', noErrorOnMissing: true }],
|
||||
}),
|
||||
new FaviconsWebpackPlugin({
|
||||
logo: './public/favicon.svg',
|
||||
favicons: {
|
||||
background: '#0c0a09',
|
||||
icons: {
|
||||
favicons: true,
|
||||
android: false,
|
||||
appleIcon: false,
|
||||
appleStartup: false,
|
||||
yandex: false,
|
||||
windows: false,
|
||||
},
|
||||
},
|
||||
}),
|
||||
...(isProduction
|
||||
? [new MiniCssExtractPlugin()]
|
||||
: [new ReactRefreshWebpackPlugin()]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue