Commit 07232fbb authored by marius david's avatar marius david
Browse files

bundle more deps

parent c7bcf747
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -23,3 +23,16 @@ mkdir -p $DIST_DIR/bootstrap-icons-font/fonts
cp -r bootstrap-icons-*/font/fonts/* $DIST_DIR/bootstrap-icons-font/fonts
cp -r bootstrap-icons-*/font/bootstrap-icons.min.css $DIST_DIR/bootstrap-icons-font/bootstrap-icons.min.css
rm -r $BOOTSTRAP_ICONS_TEMP

# That’s what the npm repo recommend
echo "fetching bootstrap-dark"
wget "https://cdn.jsdelivr.net/npm/bootstrap-dark-5@1.1.3/dist/css/bootstrap-dark.min.css" -O $DIST_DIR/bootstrap-dark.min.css

# That’s also what the npm repo recommend, but we pin a version
echo "fetching pwa-update"
wget https://cdn.jsdelivr.net/npm/@pwabuilder/pwaupdate@0.2.1/dist/pwa-update.js -O $DIST_DIR/pwa-update.js

# This one doesn’t specify this as upstream, but that’s was present before when it didn’t fetched a copy of the deps, so I’m just gonna trust it
# ok. This one does fetch data from a google server in the script. Might need more digging, but I’ll keep this as-is for now.
echo "fetching workbox-sw"
wget https://cdn.jsdelivr.net/npm/workbox-sw@6.5.4/build/workbox-sw.js -O $DIST_DIR/workbox-sw.js
 No newline at end of file
+11 −0

File added.

Preview size limit exceeded, changes collapsed.

+173 −0

File added.

Preview size limit exceeded, changes collapsed.

+2 −0
Original line number Diff line number Diff line
!function(){"use strict";try{self["workbox:sw:6.5.4"]&&_()}catch(t){}const t={backgroundSync:"background-sync",broadcastUpdate:"broadcast-update",cacheableResponse:"cacheable-response",core:"core",expiration:"expiration",googleAnalytics:"offline-ga",navigationPreload:"navigation-preload",precaching:"precaching",rangeRequests:"range-requests",routing:"routing",strategies:"strategies",streams:"streams",recipes:"recipes"};self.workbox=new class{constructor(){return this.v={},this.Pt={debug:"localhost"===self.location.hostname,modulePathPrefix:null,modulePathCb:null},this.$t=this.Pt.debug?"dev":"prod",this.Ct=!1,new Proxy(this,{get(e,s){if(e[s])return e[s];const o=t[s];return o&&e.loadModule("workbox-"+o),e[s]}})}setConfig(t={}){if(this.Ct)throw new Error("Config must be set before accessing workbox.* modules");Object.assign(this.Pt,t),this.$t=this.Pt.debug?"dev":"prod"}loadModule(t){const e=this.jt(t);try{importScripts(e),this.Ct=!0}catch(s){throw console.error(`Unable to import module '${t}' from '${e}'.`),s}}jt(t){if(this.Pt.modulePathCb)return this.Pt.modulePathCb(t,this.Pt.debug);let e=["https://storage.googleapis.com/workbox-cdn/releases/6.5.4"];const s=`${t}.${this.$t}.js`,o=this.Pt.modulePathPrefix;return o&&(e=o.split("/"),""===e[e.length-1]&&e.splice(e.length-1,1)),e.push(s),e.join("/")}}}();
//# sourceMappingURL=workbox-sw.js.map
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@
		<link rel="icon" href="_img/favicon.svg" type="image/svg+xml" class="js-site-favicon">
    
		<link rel="stylesheet" href="./_css/style.css">
		<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-dark-5@1.1.3/dist/css/bootstrap-dark.min.css">
		<link rel="stylesheet" href="./_js/dist/bootstrap-dark.min.css">
		<link rel="stylesheet" href="./_js/dist/bootstrap-icons-font/bootstrap-icons.min.css">
		
		<script src="./_js/favicon.js" defer></script>
Loading