Skip to content

Commit

Permalink
🔀 Merge pull request #2 from AssistantApps/develop
Browse files Browse the repository at this point in the history
🐛 Reduce pre-caching
  • Loading branch information
Khaoz-Topsy authored Jul 25, 2024
2 parents be3094b + 60f9c72 commit 8ee45eb
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cassette-beasts-extract",
"version": "1.1.0",
"version": "1.1.1",
"description": "Website generated from data & images extracted from the Cassette Beasts",
"scripts": {
"start": "dotenv -- tsx src/main.ts",
Expand Down
5 changes: 5 additions & 0 deletions src/scss/_assistantApps.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.full-page-app-notice {
--aa-app-notice-grid-columns: 1;
margin-top: 1em;
margin-bottom: 1em;
}
1 change: 1 addition & 0 deletions src/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@import 'animate';
@import 'breadcrumb';
@import 'responsive';
@import 'assistantApps';

@import 'move';
@import 'moveDetail';
Expand Down
6 changes: 4 additions & 2 deletions src/templates/layouts/default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@

<main class="container page-container">

<assistant-apps-app-notice-list appguid="{{@root.assistantApps.appGuid}}"
langcode="{{@root.langCode}}"></assistant-apps-app-notice-list>
<div class="full-page-app-notice">
<assistant-apps-app-notice-list appguid="{{@root.assistantApps.appGuid}}"
langcode="{{@root.langCode}}"></assistant-apps-app-notice-list>
</div>

{{> @partial-block }}

Expand Down
38 changes: 27 additions & 11 deletions workbox-config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
module.exports = {
globDirectory: 'public/',
globPatterns: [
'**/*.{html,wav,css,png,ico,webp,jpg,js,xml,txt,json}'
],
swDest: 'public/sw.js',
ignoreURLParametersMatching: [
/^utm_/,
/^fbclid$/,
/^standalone/
]
};
globDirectory: 'public/',
globPatterns: ['**/*.{html,css,png,ico,webp,jpg}'],
globIgnores: [
'**/node_modules/**/*',
'**/*.js',
'**/assets/audio/**/*',
'**/assets/favicon/android*.*',
'**/assets/favicon/apple*.*',
'**/assets/font/**/*',
'**/assets/img/game/**/*',
'**/assets/img/generated/**/*',
'**/assets/img/inspiration/**/*',
'**/assets/img/meta/**/*',
'**/de_DE/**/*',
'**/en/**/*',
'**/es_ES/**/*',
'**/es_MX/**/*',
'**/fr_FR/**/*',
'**/it_IT/**/*',
'**/ja_JP/**/*',
'**/ko_KR/**/*',
'**/pt_BR/**/*',
'**/zh_CN/**/*',
],
swDest: 'public/sw.js',
ignoreURLParametersMatching: [/^utm_/, /^fbclid$/, /^standalone/],
};

0 comments on commit 8ee45eb

Please sign in to comment.