Skip to content

Commit

Permalink
feat(favicon): add favicon (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
KatvonRivia authored Mar 4, 2020
1 parent 07c0456 commit fb031c4
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
58 changes: 58 additions & 0 deletions assets/images/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/scripts/components/app/app.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@font-face
font-style: normal
font-family: NotesEsa
src: url('../../../fonts/NotesEsaReg.otf')
src: url('../../../../assets/fonts/NotesEsaReg.otf')

:global(html), :global(body), :global(#app)
overflow: hidden
Expand Down
13 changes: 12 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ module.exports = (env, {mode} = {}) => {
outputPath: 'fonts/'
}
}
},
{
test: /\.(svg)?$/,
use: {
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'images/'
}
}
}
]
},
Expand All @@ -84,7 +94,8 @@ module.exports = (env, {mode} = {}) => {
},
plugins: [
new HtmlWebpackPlugin({
template: 'src/index.html'
template: 'src/index.html',
favicon: 'assets/images/favicon.svg'
}),
new MiniCssExtractPlugin({
filename: 'styles.[hash].css'
Expand Down

0 comments on commit fb031c4

Please sign in to comment.