I have the following problem. I am using nuxt with the pwa module to generate a pre-rendered webpage. The @nuxt/pwa icon module should generate the different sized icons for the manifest.
This is also working when I run nuxt generate on my laptop.
In my gitlab-ci pipeline the generation also is working but it is always generating the default nuxt icon
This icon I can not in my workspace so I guess it is somehow referenced in the docker build from node_modules.
I am using the following gitlab-ci job
build:
image: node:alpine
stage: build
script:
- npm run generate
artifacts:
paths:
- dist/*
expire_in: 14 days
only:
- master
The package.json looks like this:
"scripts": {
"generate": "nuxt generate",
...
},
"dependencies": {
"@nuxtjs/pwa": "^3.0.0-beta.20",
"nuxt": "^2.14.0",
...
},
"devDependencies": {
...
}
I also tried a lot of different settings in my nuxt.conf.js as I guessed that the icon is not referenced correctly.
This was my last try
pwa: {
icon: {
source: resolve(__dirname, './client/static/icon.png'),
},
},
But as it is found locally I thik that it is right.
Has anyone an idea why the nuxt generate does not work in gitlab-ci?
