Skip to content

Commit 2276dae

Browse files
author
David Joy
committed
feat: adds favicon into dist
1 parent a15b795 commit 2276dae

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

config/webpack.dev.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ module.exports = Merge.smart(commonConfig, {
9393
test: /\.(woff2?|ttf|svg|eot)(\?v=\d+\.\d+\.\d+)?$/,
9494
loader: 'file-loader',
9595
},
96+
{
97+
test: /favicon.ico$/,
98+
loader: 'file-loader?name=[name].[ext]' // <-- retain original file name
99+
},
96100
{
97101
test: /\.(jpe?g|png|gif|ico)(\?v=\d+\.\d+\.\d+)?$/,
98102
use: [

config/webpack.prod.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ module.exports = Merge.smart(commonConfig, {
103103
test: /\.(woff2?|ttf|svg|eot)(\?v=\d+\.\d+\.\d+)?$/,
104104
loader: 'file-loader',
105105
},
106+
{
107+
test: /favicon.ico$/,
108+
loader: 'file-loader?name=[name].[ext]' // <-- retain original file name
109+
},
106110
{
107111
test: /\.(jpe?g|png|gif|ico)(\?v=\d+\.\d+\.\d+)?$/,
108112
use: [

0 commit comments

Comments
 (0)