add og:image

This commit is contained in:
Philipp Kühn
2018-08-26 20:04:40 +02:00
parent 6164bd6abd
commit 56bb2fb3b5
3 changed files with 16 additions and 1 deletions

View File

@@ -135,6 +135,20 @@ export default {
// 'process.env': {}, // 'process.env': {},
// }), // }),
// copy static files
new CopyWebpackPlugin([
{
context: `${srcPath}/assets/static`,
from: { glob: '**/*', dot: false },
to: `${buildPath}/assets`,
},
{
context: `${srcPath}/assets/static`,
from: { glob: '**/*', dot: false },
to: `${buildPath}/assets/[path][name].[hash].[ext]`,
},
]),
// enable hot reloading // enable hot reloading
ifDev(new webpack.HotModuleReplacementPlugin()), ifDev(new webpack.HotModuleReplacementPlugin()),

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -4,9 +4,10 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge"> <meta http-equiv="x-ua-compatible" content="ie=edge">
<title>tiptap</title> <title>tiptap</title>
<meta name="description" content="A renderless rich-text editor for Vue.js"> <meta name="description" content="A renderless & extendable rich-text editor for Vue.js">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes">
<meta property="og:image" content="/assets/images/open-graph.png">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>