mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 17:44:20 -08:00
- site not being at the "topmost level" (e.g. there's a `/path`) makes the approach of having the favicon in a known, static location break (`https://[tld]/favicon.ico`). Setting the icon via the plugin should make it work. It should be here anyways. We'll still need to add the SEO plugin as part of the accessibility fixes (setting page meta tags in a i18n way)
64 lines
1.6 KiB
JavaScript
64 lines
1.6 KiB
JavaScript
module.exports = {
|
|
siteMetadata: {
|
|
title: 'Justice40',
|
|
image: '/static/favicon.ico',
|
|
},
|
|
pathPrefix: `/justice40-tool/${process.env.DESTINATION_FOLDER}`,
|
|
plugins: [
|
|
{
|
|
resolve: 'gatsby-plugin-sass',
|
|
options: {
|
|
sassOptions: {
|
|
includePaths: [
|
|
'./node_modules/uswds',
|
|
],
|
|
},
|
|
cssLoaderOptions: {
|
|
modules: {
|
|
exportLocalsConvention: 'camelCaseOnly',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
resolve: 'gatsby-plugin-intl',
|
|
options: {
|
|
// language JSON resource path
|
|
path: `${__dirname}/src/intl`,
|
|
// supported language
|
|
languages: [`en`, `es`],
|
|
// language file path
|
|
defaultLanguage: `en`,
|
|
// option to redirect to `/en` when connecting `/`
|
|
redirect: true,
|
|
},
|
|
},
|
|
{
|
|
resolve: 'gatsby-plugin-prettier-eslint',
|
|
options: {
|
|
prettier: {
|
|
patterns: [
|
|
// The pattern "**/*.{js,jsx,ts,tsx}" is
|
|
// not used because we will rely on `eslint --fix`
|
|
'**/*.{scss}',
|
|
'**/*.{json}',
|
|
'**/*.{graphql}',
|
|
'**/*.{md}',
|
|
'**/*.{html}',
|
|
'**/*.{yaml,yml}',
|
|
],
|
|
},
|
|
eslint: {
|
|
patterns: '**/*.{js,jsx,ts,tsx}',
|
|
ignorePatterns: ['public', 'node_modules', '*scss.d.ts'],
|
|
failOnError: true,
|
|
customOptions: {
|
|
fix: true,
|
|
cache: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
'gatsby-plugin-react-helmet',
|
|
],
|
|
};
|