Webpack Easy SEO
Installation
npm install --save-dev webpack-easy-seo
Usage
const HtmlWebpackPlugin = ;const EasySeo = ; const seoInst = // Application Title, which is shown in the tab bar. title: "Your Title" // Application Description, which is shown in search engines and OpenGraph. description: "Your description" // Your public url, which is used to create the correct links to your images. publicUrl: "https://myapp.mydomain.com" // Your thumbnail image, which is used in OpenGraph imagePath: "./picture/logo.png" // Your webpack build folder buildPath: "./build" // Path in your build folder to your image. outputPath: "/assets/images/thumbnail.png"; module { return ... plugins: template: "./public/index.html" // Title title: seoInst // Meta Tags meta: seoInst // seoInst as webpack plugin to create the thumbnail file after compilation. seoInst };