2021-05-19 18:19:38 -04:00
|
|
|
module.exports = {
|
|
|
|
siteMetadata: {
|
2021-05-25 16:21:21 -04:00
|
|
|
title: 'Justice40',
|
2021-05-19 18:19:38 -04:00
|
|
|
},
|
2021-06-14 10:42:09 -04:00
|
|
|
pathPrefix: `/justice40-tool/${process.env.DESTINATION_FOLDER}`,
|
2021-05-21 13:05:27 -04:00
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-plugin-sass',
|
|
|
|
options: {
|
2021-06-14 11:06:23 -07:00
|
|
|
sassOptions: {
|
|
|
|
includePaths: [
|
|
|
|
'./node_modules/uswds',
|
|
|
|
],
|
|
|
|
},
|
2021-05-21 13:05:27 -04:00
|
|
|
cssLoaderOptions: {
|
|
|
|
modules: {
|
2021-05-25 16:21:21 -04:00
|
|
|
exportLocalsConvention: 'camelCaseOnly',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-05-21 13:05:27 -04:00
|
|
|
},
|
|
|
|
{
|
2021-06-14 11:06:23 -07:00
|
|
|
resolve: 'gatsby-plugin-intl',
|
2021-05-25 16:21:21 -04:00
|
|
|
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`
|
2021-07-02 12:32:55 -07:00
|
|
|
'**/*.{scss}',
|
|
|
|
'**/*.{json}',
|
2021-05-25 16:21:21 -04:00
|
|
|
'**/*.{graphql}',
|
2021-07-02 12:32:55 -07:00
|
|
|
'**/*.{md}',
|
2021-05-25 16:21:21 -04:00
|
|
|
'**/*.{html}',
|
|
|
|
'**/*.{yaml,yml}',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
eslint: {
|
|
|
|
patterns: '**/*.{js,jsx,ts,tsx}',
|
|
|
|
ignorePatterns: ['public', 'node_modules', '*scss.d.ts'],
|
|
|
|
failOnError: true,
|
|
|
|
customOptions: {
|
|
|
|
fix: true,
|
|
|
|
cache: true,
|
|
|
|
},
|
2021-05-21 13:05:27 -04:00
|
|
|
},
|
2021-05-25 16:21:21 -04:00
|
|
|
},
|
2021-05-21 13:05:27 -04:00
|
|
|
},
|
2021-05-28 17:07:50 -07:00
|
|
|
'gatsby-plugin-react-helmet',
|
2021-05-21 13:05:27 -04:00
|
|
|
],
|
2021-05-19 18:19:38 -04:00
|
|
|
};
|