Fix og-image

This commit is contained in:
schmelczerandras 2020-12-07 08:05:57 +01:00
parent 802b215225
commit 6a93206f4e
7 changed files with 6 additions and 16 deletions

View file

@ -6,7 +6,7 @@
"scripts": {
"start": "webpack-dev-server --mode development",
"lint": "npx eslint --fix \"src/**/*.ts\" && npx prettier --write \"src/**/*.ts\"",
"build": "webpack --mode production"
"build": "webpack --mode production && rm dist/*.js && rm dist/*.css"
},
"keywords": [],
"author": "András Schmelczer <andras@schmelczer.dev> (https://schmelczer.dev/)",
@ -46,7 +46,7 @@
"resolve-url-loader": "^3.1.1",
"sass": "^1.27.0",
"sass-loader": "^8.0.2",
"sdf-2d": "^0.7.3",
"sdf-2d": "^0.7.4",
"source-map-loader": "^1.1.1",
"svg-url-loader": "^6.0.0",
"ts-config-webpack-plugin": "^2.0.0",

View file

@ -1,11 +1,11 @@
import { glMatrix } from 'gl-matrix';
import { compile } from 'sdf-2d';
import '../static/favicons/apple-touch-icon.png';
import '../static/favicons/favicon-16x16.png';
import '../static/favicons/favicon-32x32.png';
import '../static/favicons/favicon.ico';
import '../static/logo-white.svg';
import '../static/no-change/404.html';
import '../static/no-change/favicons/apple-touch-icon.png';
import '../static/no-change/favicons/favicon-16x16.png';
import '../static/no-change/favicons/favicon-32x32.png';
import '../static/no-change/favicons/favicon.ico';
import '../static/no-change/og-image.png';
import '../static/no-change/robots.txt';
import { extractInsights } from './helper/extract-insights';

View file

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 440 B

After

Width:  |  Height:  |  Size: 440 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 978 B

After

Width:  |  Height:  |  Size: 978 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before After
Before After

View file

@ -75,16 +75,6 @@ module.exports = {
},
],
},
{
test: /\.(ico|png)$/,
use: {
loader: 'file-loader',
query: {
outputPath: '/',
name: '[name].[ext]',
},
},
},
{
test: /no-change.*$/i,
use: {