fix(v2): Correctly resolve sw.js path on windows (#3436)

* fix(v2): Correctly resolve sw.js path on windows

* Just fixing the icons too

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
This commit is contained in:
Ash 2020-09-11 14:19:11 +01:00 committed by GitHub
parent 80c9431af7
commit 37989a00c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -73,7 +73,7 @@ function plugin(context, options) {
plugins: [
new webpack.EnvironmentPlugin({
PWA_DEBUG: debug,
PWA_SERVICE_WORKER_URL: path.resolve(
PWA_SERVICE_WORKER_URL: path.posix.resolve(
`${config.output.publicPath || '/'}`,
'sw.js',
),

View file

@ -113,12 +113,12 @@ module.exports = {
{
tagName: 'link',
rel: 'icon',
href: '/img/docusaurus.png',
href: 'img/docusaurus.png',
},
{
tagName: 'link',
rel: 'manifest',
href: '/manifest.json',
href: 'manifest.json',
},
{
tagName: 'meta',
@ -138,18 +138,18 @@ module.exports = {
{
tagName: 'link',
rel: 'apple-touch-icon',
href: '/img/docusaurus.png',
href: 'img/docusaurus.png',
},
{
tagName: 'link',
rel: 'mask-icon',
href: '/img/docusaurus.svg',
href: 'img/docusaurus.svg',
color: 'rgb(62, 204, 94)',
},
{
tagName: 'meta',
name: 'msapplication-TileImage',
content: '/img/docusaurus.png',
content: 'img/docusaurus.png',
},
{
tagName: 'meta',