Files
Reactive-Resume/gatsby-config.js
2020-07-16 20:30:53 +05:30

153 lines
3.8 KiB
JavaScript

require('dotenv').config();
module.exports = {
siteMetadata: {
title: 'Reactive Resume',
siteUrl: 'https://rxresume-staging.web.app',
description: 'A free and open source resume builder.',
},
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-plugin-eslint',
options: {
test: /\.js$|\.jsx$/,
exclude: /(node_modules|.cache|public)/,
stages: ['develop'],
options: {
emitWarning: true,
failOnError: false,
},
},
},
{
resolve: 'gatsby-plugin-prefetch-google-fonts',
options: {
fonts: [
{
family: 'Lato',
variants: ['400', '700'],
},
{
family: 'Montserrat',
variants: ['400', '500', '600', '700'],
},
{
family: 'Nunito',
variants: ['400', '600', '700'],
},
{
family: 'Open Sans',
variants: ['400', '600', '700'],
},
{
family: 'Raleway',
variants: ['400', '500', '700'],
},
{
family: 'Rubik',
variants: ['400', '500', '700'],
},
{
family: 'Source Sans Pro',
variants: ['400', '600', '700'],
},
{
family: 'Titillium Web',
variants: ['400', '600', '700'],
},
],
},
},
{
resolve: 'gatsby-plugin-create-client-paths',
options: { prefixes: ['/app/*'] },
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'Reactive Resume',
short_name: 'RxResume',
description: 'A free and open-source resume builder.',
start_url: '/?source=pwa',
icon: 'static/images/logo.png',
icon_options: {
purpose: 'any maskable monochrome',
},
background_color: '#FFFFFF',
theme_color: '#444444',
display: 'standalone',
cache_busting_mode: 'none',
icons: [
{
src: 'static/icons/maskable.png',
sizes: '196x196',
type: 'image/png',
purpose: 'any maskable monochrome',
},
],
shortcuts: [
{
name: 'Dashboard',
short_name: 'Dashboard',
description: 'View/manage all your resumes at a glance',
url: '/app/dashboard?source=pwa',
},
],
},
},
{
resolve: 'gatsby-plugin-offline',
options: {
workboxConfig: {
globPatterns: ['**/*'],
},
precachePages: ['', '/app/*', '/blog/*'],
},
},
'gatsby-plugin-lodash',
{
resolve: 'gatsby-plugin-material-ui',
options: {
stylesProvider: {
injectFirst: true,
},
},
},
'gatsby-plugin-postcss',
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/src/articles`,
name: 'articles',
},
},
'gatsby-transformer-remark',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/static/images/`,
},
},
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-plugin-firebase',
options: {
credentials: {
apiKey: process.env.FIREBASE_APIKEY,
authDomain: process.env.FIREBASE_AUTHDOMAIN,
databaseURL: process.env.FIREBASE_DATABASEURL,
projectId: process.env.FIREBASE_PROJECTID,
storageBucket: process.env.FIREBASE_STORAGEBUCKET,
messagingSenderId: process.env.FIREBASE_MESSAGINGSENDERID,
appId: process.env.FIREBASE_APPID,
measurementId: process.env.FIREBASE_MEASUREMENTID,
},
},
},
'gatsby-plugin-sitemap',
],
};