Skip to content
Snippets Groups Projects
Commit b775a9f7 authored by Moritz Langenstein's avatar Moritz Langenstein
Browse files

(ml5717) Automatically generate service-worker cache list + fixed empty output

parent f9dec427
No related branches found
No related tags found
Loading
Pipeline #109190 passed
...@@ -165,6 +165,7 @@ typings/ ...@@ -165,6 +165,7 @@ typings/
.nuxt .nuxt
# react / gatsby (customised) # react / gatsby (customised)
public/service-worker.js
public/js public/js
public/benchmarks.html public/benchmarks.html
......
...@@ -74,7 +74,7 @@ build: ...@@ -74,7 +74,7 @@ build:
- npm_install - npm_install
script: script:
- npm run build - npm run build
- gcc -E -P -traditional-cpp -o /dev/stdout -DFILES_TO_CACHE_LIST=`find public/ -type f "!" -iname service-worker.js -and "!" -name '.*' | cut -c6- | sed 's_._"_' | sed 's/$/",/' | sort | tr -d '\n'` - < public/service-worker.js | npx prettier --parser babel > public/service-worker.js - gcc -E -P -traditional-cpp -o /dev/stdout -DFILES_TO_CACHE_LIST=`find public/ -type f "!" -name '.*' | cut -c6- | sed 's_._"_' | sed 's/$/",/' | sort | tr -d '\n'` - < src/service-worker.js | npx prettier --parser babel > public/service-worker.js
artifacts: artifacts:
paths: paths:
- public/ - public/
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment