mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-21 16:52:06 -07:00
Packaging as a theme
This commit is contained in:
+11
-10
@@ -1,12 +1,13 @@
|
||||
const ipfsPrefix = process.argv.find(val=> val === '--prefix-paths')
|
||||
const ipfsPrefix = process.argv.find(val => val === "--prefix-paths")
|
||||
console.log("DEBUG >> IM HERE")
|
||||
|
||||
const ipfsConfig =[
|
||||
'gatsby-plugin-ipfs',
|
||||
const ipfsConfig = [
|
||||
"gatsby-plugin-ipfs",
|
||||
`gatsby-plugin-react-helmet`,
|
||||
{
|
||||
resolve: `gatsby-source-filesystem`,
|
||||
options: {
|
||||
start_url: '__GATSBY_IPFS_PATH_PREFIX__',
|
||||
start_url: "__GATSBY_IPFS_PATH_PREFIX__",
|
||||
name: `images`,
|
||||
path: `${__dirname}/src/images`,
|
||||
},
|
||||
@@ -18,7 +19,7 @@ const ipfsConfig =[
|
||||
options: {
|
||||
name: `gatsby-starter-default`,
|
||||
short_name: `starter`,
|
||||
start_url: '__GATSBY_IPFS_PATH_PREFIX__',
|
||||
start_url: "__GATSBY_IPFS_PATH_PREFIX__",
|
||||
background_color: `#663399`,
|
||||
theme_color: `#663399`,
|
||||
display: `minimal-ui`,
|
||||
@@ -31,12 +32,12 @@ const ipfsConfig =[
|
||||
// `gatsby-plugin-offline`,
|
||||
]
|
||||
|
||||
const normalConfig=[
|
||||
const normalConfig = [
|
||||
`gatsby-plugin-react-helmet`,
|
||||
{
|
||||
resolve: `gatsby-source-filesystem`,
|
||||
options: {
|
||||
start_url: '/',
|
||||
start_url: "/",
|
||||
name: `images`,
|
||||
path: `${__dirname}/src/images`,
|
||||
},
|
||||
@@ -48,11 +49,11 @@ const normalConfig=[
|
||||
options: {
|
||||
name: `gatsby-starter-default`,
|
||||
short_name: `starter`,
|
||||
start_url: '/',
|
||||
start_url: "/",
|
||||
background_color: `#663399`,
|
||||
theme_color: `#663399`,
|
||||
display: `minimal-ui`,
|
||||
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
|
||||
// icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
|
||||
},
|
||||
},
|
||||
|
||||
@@ -67,6 +68,6 @@ module.exports = {
|
||||
description: `A gatsbyjs app with adminlte2 integration.`,
|
||||
author: `@gatsbyjs`,
|
||||
},
|
||||
pathPrefix: '__GATSBY_IPFS_PATH_PREFIX__',
|
||||
pathPrefix: "__GATSBY_IPFS_PATH_PREFIX__",
|
||||
plugins: ipfsPrefix ? ipfsConfig : normalConfig,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user