Update webpack.config.js

This commit is contained in:
Rick Companje 2021-06-06 22:22:12 +02:00
parent eea4651a9d
commit 4d3de046ec

View File

@ -111,17 +111,22 @@ module.exports = {
appMountId: 'app', appMountId: 'app',
inject: false, inject: false,
mobile: true, mobile: true,
minify: !devMode && { html5: true, collapseWhitespace: true }, minify: !devMode && { html5: true },
hash: !devMode, hash: !devMode,
favicon: 'favicon.ico', favicon: 'favicon.ico',
chunks: ['app'], chunks: ['app'],
meta: [ meta: [
{ 'http-equiv': 'Content-Type', content: 'text/html; charset=utf-8' }, { 'http-equiv': 'Content-Type', content: 'text/html; charset=utf-8' },
{ property: 'og:image', content: 'img/screenshot.png' },
{ property: 'og:type', content: 'website' },
{ property: 'og:url', content: 'https://doodle3d.com' },
{ name: 'apple-mobile-web-app-capable', content: 'yes' }, { name: 'apple-mobile-web-app-capable', content: 'yes' },
{ name: 'apple-mobile-web-app-status-bar-style', content: 'black' }, { name: 'apple-mobile-web-app-status-bar-style', content: 'black' },
{ name: 'mobile-web-app-capable', content: 'yes' }, { name: 'mobile-web-app-capable', content: 'yes' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, minimal-ui, user-scalable=no' } { name: 'viewport', content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, minimal-ui, user-scalable=no' }
] ],
headHtmlSnippet: '<link rel="shortcut icon" href="img/apple-touch-icon-144x144-precomposed.png" type="image/x-icon" />\
<link rel="apple-touch-icon" href="img/apple-touch-icon-144x144-precomposed.png">',
}), }),
new HTMLWebpackPlugin({ new HTMLWebpackPlugin({
template: require('html-webpack-template'), template: require('html-webpack-template'),