1- const ipfsPrefix = process . argv . find ( val => val === " --prefix-paths" )
2- console . log ( " DEBUG >> IM HERE" )
1+ const ipfsPrefix = process . argv . find ( val => val === ' --prefix-paths' )
2+ console . log ( ' DEBUG >> IM HERE' )
33
44const ipfsConfig = [
5- " gatsby-plugin-ipfs" ,
6- ` gatsby-plugin-react-helmet` ,
5+ ' gatsby-plugin-ipfs' ,
6+ ' gatsby-plugin-react-helmet' ,
77 {
8- resolve : ` gatsby-source-filesystem` ,
8+ resolve : ' gatsby-source-filesystem' ,
99 options : {
10- start_url : " __GATSBY_IPFS_PATH_PREFIX__" ,
11- name : ` images` ,
12- path : `${ __dirname } /src/images` ,
13- } ,
10+ start_url : ' __GATSBY_IPFS_PATH_PREFIX__' ,
11+ name : ' images' ,
12+ path : `${ __dirname } /src/images`
13+ }
1414 } ,
15- ` gatsby-transformer-sharp` ,
16- ` gatsby-plugin-sharp` ,
15+ ' gatsby-transformer-sharp' ,
16+ ' gatsby-plugin-sharp' ,
1717 {
18- resolve : ` gatsby-plugin-manifest` ,
18+ resolve : ' gatsby-plugin-manifest' ,
1919 options : {
20- name : ` gatsby-starter-default` ,
21- short_name : ` starter` ,
22- start_url : " __GATSBY_IPFS_PATH_PREFIX__" ,
23- background_color : ` #663399` ,
24- theme_color : ` #663399` ,
25- display : ` minimal-ui` ,
26- icon : ` src/images/gatsby-icon.png` , // This path is relative to the root of the site.
27- } ,
28- } ,
20+ name : ' gatsby-starter-default' ,
21+ short_name : ' starter' ,
22+ start_url : ' __GATSBY_IPFS_PATH_PREFIX__' ,
23+ background_color : ' #663399' ,
24+ theme_color : ' #663399' ,
25+ display : ' minimal-ui' ,
26+ icon : ' src/images/gatsby-icon.png' // This path is relative to the root of the site.
27+ }
28+ }
2929
3030 // this (optional) plugin enables Progressive Web App + Offline functionality
3131 // To learn more, visit: https://gatsby.dev/offline
3232 // `gatsby-plugin-offline`,
3333]
3434
3535const normalConfig = [
36- ` gatsby-plugin-react-helmet` ,
36+ ' gatsby-plugin-react-helmet' ,
3737 {
38- resolve : ` gatsby-source-filesystem` ,
38+ resolve : ' gatsby-source-filesystem' ,
3939 options : {
40- start_url : "/" ,
41- name : ` images` ,
42- path : `${ __dirname } /src/images` ,
43- } ,
40+ start_url : '/' ,
41+ name : ' images' ,
42+ path : `${ __dirname } /src/images`
43+ }
4444 } ,
45- ` gatsby-transformer-sharp` ,
46- ` gatsby-plugin-sharp` ,
45+ ' gatsby-transformer-sharp' ,
46+ ' gatsby-plugin-sharp' ,
4747 {
48- resolve : ` gatsby-plugin-manifest` ,
48+ resolve : ' gatsby-plugin-manifest' ,
4949 options : {
50- name : ` gatsby-starter-default` ,
51- short_name : ` starter` ,
52- start_url : "/" ,
53- background_color : ` #663399` ,
54- theme_color : ` #663399` ,
55- display : ` minimal-ui` ,
56- // icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
57- } ,
58- } ,
50+ name : ' gatsby-starter-default' ,
51+ short_name : ' starter' ,
52+ start_url : '/' ,
53+ background_color : ' #663399' ,
54+ theme_color : ' #663399' ,
55+ display : ' minimal-ui'
56+ // icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
57+ }
58+ }
5959
6060 // this (optional) plugin enables Progressive Web App + Offline functionality
6161 // To learn more, visit: https://gatsby.dev/offline
@@ -64,10 +64,10 @@ const normalConfig = [
6464
6565module . exports = {
6666 siteMetadata : {
67- title : ` Gatsby IPFS Adminlte Starter` ,
68- description : ` A gatsbyjs app with adminlte2 integration.` ,
69- author : ` @gatsbyjs` ,
67+ title : ' Gatsby IPFS Adminlte Starter' ,
68+ description : ' A gatsbyjs app with adminlte2 integration.' ,
69+ author : ' @gatsbyjs'
7070 } ,
71- pathPrefix : " __GATSBY_IPFS_PATH_PREFIX__" ,
72- plugins : ipfsPrefix ? ipfsConfig : normalConfig ,
71+ pathPrefix : ' __GATSBY_IPFS_PATH_PREFIX__' ,
72+ plugins : ipfsPrefix ? ipfsConfig : normalConfig
7373}
0 commit comments