gatsby-config.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. const path = require('path');
  2. module.exports = {
  3. pathPrefix: '/',
  4. siteMetadata: {
  5. title: 'Gatsby Default Starter',
  6. description: 'Create a consistent, good-looking, easy-to-use, and efficient user experience with a user-centric, content-first, and human-friendly design system',
  7. author: 'Semi Design Team',
  8. },
  9. plugins: [
  10. 'gatsby-plugin-svgr',
  11. 'gatsby-plugin-react-helmet',
  12. {
  13. resolve: 'gatsby-source-filesystem',
  14. options: {
  15. name: 'images',
  16. path: `${__dirname}/src/images`,
  17. },
  18. },
  19. {
  20. resolve: 'gatsby-source-filesystem',
  21. options: {
  22. name: 'content',
  23. path: `${__dirname}/content`,
  24. },
  25. },
  26. {
  27. resolve: 'gatsby-plugin-typescript',
  28. options: {
  29. isTSX: true, // defaults to false
  30. jsxPragma: 'jsx', // defaults to "React"
  31. allExtensions: true, // defaults to false
  32. },
  33. },
  34. {
  35. resolve: 'gatsby-plugin-mdx',
  36. options: {
  37. extensions: ['.mdx', '.md'],
  38. gatsbyRemarkPlugins: [
  39. {
  40. resolve: require.resolve('./plugins/gatsby-remark-unwrap'),
  41. },
  42. {
  43. resolve: require.resolve('./plugins/gatsby-remark-wrap-in-section'),
  44. },
  45. ],
  46. },
  47. },
  48. {
  49. resolve: 'gatsby-plugin-i18n',
  50. options: {
  51. langKeyDefault: 'en',
  52. useLangKeyLayout: false,
  53. },
  54. },
  55. 'gatsby-plugin-remove-serviceworker',
  56. 'gatsby-source-semi-icons'
  57. ],
  58. };