mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-18 11:36:53 +02:00
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:
parent
80c9431af7
commit
37989a00c3
2 changed files with 6 additions and 6 deletions
|
@ -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',
|
||||
),
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue