mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 01:54:18 -08:00
* Fix issues from #120 * Include USWDS scss into build. Allows us to do theme things. Compile time slower... Not sure if it's worth it since most items can be overridden in css and we can't theme the Navbar (e.g. invert colors). * Update J40Footer.spec.tsx.snap * Update gatsby-config.js
63 lines
1.5 KiB
JavaScript
63 lines
1.5 KiB
JavaScript
module.exports = {
|
|
siteMetadata: {
|
|
title: 'Justice40',
|
|
},
|
|
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`
|
|
'**/*.{css,scss,less}',
|
|
'**/*.{json,json5}',
|
|
'**/*.{graphql}',
|
|
'**/*.{md,mdx}',
|
|
'**/*.{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',
|
|
],
|
|
};
|