File tree Expand file tree Collapse file tree 8 files changed +16
-12
lines changed
Expand file tree Collapse file tree 8 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 33
44** The [ react.angular.hamburg] ( https://angular.hamburg/ ) website for Hamburg's [ Angular] ( https://angular.io/ ) [ Meetup] ( https://www.meetup.com/Hamburg-AngularJS-Meetup/ ) , jokingly made with [ React] ( https://github.com/facebook/react ) .**
55
6- [ ![ ] ( https://raw.githubusercontent.com/angular-hamburg/angular.hamburg/master/docs/media/preview.png )] ( https://angular.hamburg/ )
6+ [ ![ ] ( https://raw.githubusercontent.com/angular-hamburg/react. angular.hamburg/master/docs/media/preview.png )] ( https://angular.hamburg/ )
77
88** Heavily inspired by and partially forked from the beautiful website of [ HannoverJS] ( https://github.com/HannoverJS/hannoverjs.de ) .**
99
Original file line number Diff line number Diff line change 2929 window . addEventListener ( 'load' , ( ) => {
3030 // If we are using Github Pages instead of `https://angular.hamburg`,
3131 // the SW is found under a different path and has a different scope
32- const GH_PAGES_ENV = location . href . startsWith ( 'https://angular-hamburg.github.io/angular.hamburg/' )
32+ const GH_PAGES_ENV = location . href . startsWith ( 'https://angular-hamburg.github.io/react. angular.hamburg/' )
3333 const DEV_ENV = location . href . startsWith ( 'http://localhost:3000/' )
34- const relativePath = GH_PAGES_ENV ? '/angular.hamburg' : ''
34+ const relativePath = GH_PAGES_ENV ? '/react. angular.hamburg' : ''
3535 navigator . serviceWorker . register ( relativePath + '/service-worker.js' , {
3636 scope : relativePath + '/'
3737 } )
Original file line number Diff line number Diff line change 33
44// based on https://github.com/GoogleChrome/samples/blob/gh-pages/service-worker/basic/service-worker.js
55
6- const GH_PAGES_ENV = location . href . startsWith ( 'https://angular-hamburg.github.io/angular.hamburg/' )
6+ const GH_PAGES_ENV = location . href . startsWith ( 'https://angular-hamburg.github.io/react. angular.hamburg/' )
77
88const DEV_ENV = location . href . startsWith ( 'http://localhost:3000/' )
99
@@ -16,7 +16,7 @@ let prefetchResources = []
1616try {
1717 // If we are using Github Pages instead of 'https://angular.hamburg',
1818 // the SW config is located under a different relative path
19- const relativePath = GH_PAGES_ENV ? '/angular.hamburg' : ''
19+ const relativePath = GH_PAGES_ENV ? '/react. angular.hamburg' : ''
2020 importScripts ( relativePath + '/service-worker-config.js' )
2121
2222 // If we are using Github Pages, the resources to be prefetched have
2828 logError ( 'Failed to import:' , e )
2929}
3030
31- const VERSION = '0.6.2 '
31+ const VERSION = '0.6.3 '
3232const PREFETCH_CACHE = `ng-hh-prefetch-cache-v${ VERSION } `
3333const RUNTIME_CACHE = `ng-hh-runtime-cache-v${ VERSION } `
3434
Original file line number Diff line number Diff line change 11{
22 "name" : " angular.hamburg" ,
3- "version" : " 0.6.2 " ,
3+ "version" : " 0.6.3 " ,
44 "description" : " The angular.hamburg website for Hamburg's Angular Meetup, jokingly made with React." ,
55 "main" : " index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 1+ angular.hamburg
Original file line number Diff line number Diff line change 2929 window . addEventListener ( 'load' , ( ) => {
3030 // If we are using Github Pages instead of `https://angular.hamburg`,
3131 // the SW is found under a different path and has a different scope
32- const GH_PAGES_ENV = location . href . startsWith ( 'https://angular-hamburg.github.io/angular.hamburg/' )
32+ const GH_PAGES_ENV = location . href . startsWith ( 'https://angular-hamburg.github.io/react. angular.hamburg/' )
3333 const DEV_ENV = location . href . startsWith ( 'http://localhost:3000/' )
34- const relativePath = GH_PAGES_ENV ? '/angular.hamburg' : ''
34+ const relativePath = GH_PAGES_ENV ? '/react. angular.hamburg' : ''
3535 navigator . serviceWorker . register ( relativePath + '/service-worker.js' , {
3636 scope : relativePath + '/'
3737 } )
Original file line number Diff line number Diff line change 33
44// based on https://github.com/GoogleChrome/samples/blob/gh-pages/service-worker/basic/service-worker.js
55
6- const GH_PAGES_ENV = location . href . startsWith ( 'https://angular-hamburg.github.io/angular.hamburg/' )
6+ const GH_PAGES_ENV = location . href . startsWith ( 'https://angular-hamburg.github.io/react. angular.hamburg/' )
77
88const DEV_ENV = location . href . startsWith ( 'http://localhost:3000/' )
99
@@ -16,7 +16,7 @@ let prefetchResources = []
1616try {
1717 // If we are using Github Pages instead of 'https://angular.hamburg',
1818 // the SW config is located under a different relative path
19- const relativePath = GH_PAGES_ENV ? '/angular.hamburg' : ''
19+ const relativePath = GH_PAGES_ENV ? '/react. angular.hamburg' : ''
2020 importScripts ( relativePath + '/service-worker-config.js' )
2121
2222 // If we are using Github Pages, the resources to be prefetched have
2828 logError ( 'Failed to import:' , e )
2929}
3030
31- const VERSION = '0.6.2 '
31+ const VERSION = '0.6.3 '
3232const PREFETCH_CACHE = `ng-hh-prefetch-cache-v${ VERSION } `
3333const RUNTIME_CACHE = `ng-hh-runtime-cache-v${ VERSION } `
3434
Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ module.exports = {
6262 dry : process . env . NODE_ENV !== 'production'
6363 } ) ,
6464 new CopyPlugin ( [
65+ {
66+ from : 'CNAME'
67+ } ,
6568 {
6669 from : 'service-worker.js'
6770 } ,
You can’t perform that action at this time.
0 commit comments