72 lines
1.7 KiB
JavaScript
72 lines
1.7 KiB
JavaScript
module.exports = {
|
|
plugins: [
|
|
`gatsby-plugin-react-helmet`,
|
|
`gatsby-plugin-emotion`,
|
|
// create routes for client side routing
|
|
{
|
|
resolve: `gatsby-plugin-create-client-paths`,
|
|
options: { prefixes: [`/app/*`] },
|
|
},
|
|
// provide fonts from Google fonts
|
|
{
|
|
resolve: `gatsby-plugin-prefetch-google-fonts`,
|
|
options: {
|
|
fonts: [
|
|
{
|
|
family: `Montserrat`,
|
|
variants: [`400`, `700`],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
// plugins for PWA support
|
|
`gatsby-plugin-offline`,
|
|
{
|
|
resolve: `gatsby-plugin-manifest`,
|
|
options: {
|
|
name: `Sol Journal`,
|
|
short_name: `Sol Journal`,
|
|
start_url: `/app`,
|
|
background_color: `#FFF`,
|
|
theme_color: `#FFF`,
|
|
display: `standalone`,
|
|
icon: `src/img/splash.png`,
|
|
},
|
|
},
|
|
// plugins for optimized images
|
|
`gatsby-transformer-sharp`,
|
|
`gatsby-plugin-sharp`,
|
|
{
|
|
resolve: `gatsby-source-filesystem`,
|
|
options: {
|
|
name: `images`,
|
|
path: `${__dirname}/src/img`,
|
|
},
|
|
},
|
|
// parse data from /src/data as Javascrip objects
|
|
`gatsby-transformer-json`,
|
|
{
|
|
resolve: `gatsby-source-filesystem`,
|
|
options: {
|
|
path: `./src/data/`,
|
|
},
|
|
},
|
|
// easier imports and exports by defining aliases
|
|
// for commonly used folders
|
|
{
|
|
resolve: "gatsby-plugin-module-resolver",
|
|
options: {
|
|
root: "./src",
|
|
aliases: {
|
|
components: "./components",
|
|
data: "./data",
|
|
img: "./img",
|
|
routes: "./routes",
|
|
styles: "./styles",
|
|
utils: "./utils",
|
|
},
|
|
},
|
|
},
|
|
],
|
|
}
|