Fixed broken urls in manifest.json

This commit is contained in:
Eliot Berriot 2020-01-09 16:12:17 +01:00
parent ef6219e8c4
commit 9ab3afa47f
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
3 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,4 @@
const baseUrl = process.env.BASE_URL || '/front/'
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const webpack = require('webpack');
@ -30,7 +31,7 @@ plugins.push(
}),
)
module.exports = {
baseUrl: process.env.BASE_URL || '/front/',
baseUrl: baseUrl,
productionSourceMap: false,
// Add settings for manifest file
pwa: {
@ -48,11 +49,11 @@ module.exports = {
categories: ["music"],
icons: [
{
'src': 'favicon.png',
'src': baseUrl + 'favicon.png',
'sizes': '192x192',
'type': 'image/png'
}, {
'src': 'favicon.png',
'src': baseUrl + 'favicon.png',
'sizes': '512x512',
'type': 'image/png'
},