Skip to content

Commit

Permalink
Merge pull request #129 from sh4rkman/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
sh4rkman authored Apr 3, 2024
2 parents 87bdc37 + b4ecbda commit 29187ac
Show file tree
Hide file tree
Showing 10 changed files with 558 additions and 175 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@



# <img src="https://img.shields.io/badge/-minor%20release-%2337b6ff"> **20.7.0** *(2024-04-03)*

<img src="https://img.shields.io/badge/-new-green"> New explosion animation when a target is created (can be disabled in settings)


</br></br><!-- CHANGELOG SPLIT MARKER -->

# <img src="https://img.shields.io/badge/-minor%20release-%2337b6ff"> **20.6.0** *(2024-03-29)*

<img src="https://img.shields.io/badge/-%20Improv%20-orange"> SquadCalc is now using [ServiceWorker](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) to load maps faster, and store itself offline
Expand Down
53 changes: 25 additions & 28 deletions config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,55 +43,51 @@ module.exports = {
}),
new CopyPlugin({
patterns: [
{ from: "./src/img/maps/albasrah/", to: "./src/img/maps/albasrah/" },
{ from: "./src/img/maps/anvil/", to: "./src/img/maps/anvil/" },
{ from: "./src/img/maps/belaya/", to: "./src/img/maps/belaya/" },
{ from: "./src/img/maps/blackcoast/", to: "./src/img/maps/blackcoast/" },
{ from: "./src/img/maps/chora/", to: "./src/img/maps/chora/" },
{ from: "./src/img/maps/fallujah/", to: "./src/img/maps/fallujah/" },
{ from: "./src/img/maps/foolsroad/", to: "./src/img/maps/foolsroad/" },
{ from: "./src/img/maps/goosebay/", to: "./src/img/maps/goosebay/" },
{ from: "./src/img/maps/gorodok/", to: "./src/img/maps/gorodok/" },
{ from: "./src/img/maps/harju/", to: "./src/img/maps/harju/" },
{ from: "./src/img/maps/kamdesh/", to: "./src/img/maps/kamdesh/" },
{ from: "./src/img/maps/kohat/", to: "./src/img/maps/kohat/" },
{ from: "./src/img/maps/kokan/", to: "./src/img/maps/kokan/" },
{ from: "./src/img/maps/lashkar/", to: "./src/img/maps/lashkar/" },
{ from: "./src/img/maps/logar/", to: "./src/img/maps/logar/" },
{ from: "./src/img/maps/manicouagan/", to: "./src/img/maps/manicouagan/" },
{ from: "./src/img/maps/mestia/", to: "./src/img/maps/mestia/" },
{ from: "./src/img/maps/mutaha/", to: "./src/img/maps/mutaha/" },
{ from: "./src/img/maps/narva/", to: "./src/img/maps/narva/" },
{ from: "./src/img/maps/sanxian/", to: "./src/img/maps/sanxian/" },
{ from: "./src/img/maps/skorpo/", to: "./src/img/maps/skorpo/" },
{ from: "./src/img/maps/sumari/", to: "./src/img/maps/sumari/" },
{ from: "./src/img/maps/tallil/", to: "./src/img/maps/tallil/" },
{ from: "./src/img/maps/yehorivka/", to: "./src/img/maps/yehorivka/" },
{ from: "./src/img/maps/", to: "./src/img/maps/" },
{ from: "./src/img/github/", to: "./src/img/github/" },
],
}),
new WebpackPwaManifest({
name: 'SquadCalc',
short_name: 'SquadCalc',
start_url: "/",
description: 'A Minimalist Mortar Calculator',
background_color: '#111111',
publicPath : './',
fingerprints: false,
theme_color: '#FFFFFF',
inject: true,
ios: true,
crossorigin: 'use-credentials', //can be null, use-credentials or anonymous
crossorigin: 'use-credentials',
icons: [
{
src: path.resolve('./src/img/favicons/favicon.png'),
sizes: [96, 192, 256, 384, 512], // multiple sizes
src: path.resolve('./src/img/favicons/maskable_icon_x512.png'),
sizes: [96, 192, 256, 384, 512],
destination: path.join('src', 'img', 'favicons'),
},
{
src: path.resolve('./src/img/favicons/favicon.png'),
src: path.resolve('./src/img/favicons/maskable_icon_x512.png'),
size: '1024x1024',
destination: path.join('src', 'img', 'favicons'),
ios: true,
purpose: 'maskable'
}
],
screenshots : [
{
"src": "./src/img/github/mobile_ui.png",
"sizes": "748x1568",
"type": "image/webp",
"form_factor": "narrow",
"label": "Map View"
},
{
"src": "./src/img/github/desktop_ui.png",
"sizes": "601x426",
"type": "image/webp",
"form_factor": "wide",
"label": "Map View"
},
]
}),
new workbox.GenerateSW({
Expand All @@ -101,6 +97,7 @@ module.exports = {
maximumFileSizeToCacheInBytes: 10000000,
exclude: [
/manifest\.json$/,
/robots\.txt$/,
/\.map$/,
/\/maps\/[^\/]+\/[3-4]/, // exclude low level zoom tiles
/\/heightmaps\//,
Expand Down
Loading

0 comments on commit 29187ac

Please sign in to comment.