Skip to content

Commit

Permalink
GH-278 Remove favicon.png, cache and fix dimensions of icon.png
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemke committed May 23, 2021
1 parent 6d0cfdf commit 762be5f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cwt-angular/config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = {
},
{
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
exclude: /(favicon.ico|favicon.png|loading.gif|flags\/.*?.png|weapons\/.*?.gif)$/,
exclude: /(favicon.ico|icon.png|loading.gif|flags\/.*?.png|weapons\/.*?.gif)$/,
use: ['file-loader?name=assets/[name].[hash].[ext]']
},
{
Expand All @@ -75,8 +75,8 @@ module.exports = {
use: ['file-loader?name=loading.gif']
},
{
test: /favicon.png$/,
use: ['file-loader?name=assets/favicon.png']
test: /icon.png$/,
use: ['file-loader?name=assets/icon.png']
},
{
type: 'javascript/auto',
Expand Down
2 changes: 1 addition & 1 deletion cwt-angular/src/main/webapp/app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {platformBrowserDynamic} from "@angular/platform-browser-dynamic";
import {enableProdMode} from "@angular/core";
import {AppModule} from "./_modules/app.module";

import '../img/favicon.png'; // for the icon in manifest.json
import '../img/icon.png'; // for the icon in manifest.json
import '../img/favicon.ico'; // for the favicon
import '../manifest.json';

Expand Down
Binary file removed cwt-angular/src/main/webapp/img/favicon.png
Binary file not shown.
4 changes: 2 additions & 2 deletions cwt-angular/src/main/webapp/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"type": "image/x-icon"
},
{
"src": "/assets/favicon.png",
"src": "/assets/icon.png",
"type": "image/png",
"sizes": "192x192"
"sizes": "148x148"
}
],
"start_url": "/",
Expand Down

0 comments on commit 762be5f

Please sign in to comment.