Skip to content

Commit

Permalink
fix(v2): Correctly resolve sw.js path on windows (#3436)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
ashscodes and slorber authored Sep 11, 2020
1 parent 80c9431 commit 37989a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-pwa/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
),
Expand Down
10 changes: 5 additions & 5 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 37989a0

Please sign in to comment.