feat: add sentry, rollback gatsby-plugin-sass version

This commit is contained in:
alxshelepenok 2020-11-14 01:58:54 +03:00
parent 3eab2c2c49
commit 8458be047b
3 changed files with 104 additions and 13 deletions

View File

@ -113,8 +113,7 @@ module.exports = {
resolve: 'gatsby-remark-images', resolve: 'gatsby-remark-images',
options: { options: {
maxWidth: 960, maxWidth: 960,
withWebp: true, withWebp: true
ignoreFileExtensions: [],
} }
}, },
{ {
@ -135,7 +134,7 @@ module.exports = {
{ {
resolve: 'gatsby-plugin-netlify-cms', resolve: 'gatsby-plugin-netlify-cms',
options: { options: {
modulePath: `${__dirname}/src/cms/index.js`, modulePath: `${__dirname}/src/cms/index.js`
} }
}, },
{ {
@ -143,9 +142,9 @@ module.exports = {
options: { options: {
trackingIds: [siteConfig.googleAnalyticsId], trackingIds: [siteConfig.googleAnalyticsId],
pluginConfig: { pluginConfig: {
head: true, head: true
}, }
}, }
}, },
{ {
resolve: 'gatsby-plugin-sitemap', resolve: 'gatsby-plugin-sitemap',
@ -198,11 +197,18 @@ module.exports = {
options: { options: {
postCssPlugins: [...postCssPlugins], postCssPlugins: [...postCssPlugins],
cssLoaderOptions: { cssLoaderOptions: {
camelCase: false, camelCase: false
} }
} }
}, },
{
resolve: '@sentry/gatsby',
options: {
dsn: process.env.SENTRY_DSN,
tracesSampleRate: 1
}
},
'gatsby-plugin-flow', 'gatsby-plugin-flow',
'gatsby-plugin-optimize-svgs', 'gatsby-plugin-optimize-svgs'
] ]
}; };

View File

@ -38,6 +38,8 @@
"disqus" "disqus"
], ],
"dependencies": { "dependencies": {
"@sentry/gatsby": "^5.27.4",
"@sentry/tracing": "^5.27.4",
"bluebird": "^3.7.2", "bluebird": "^3.7.2",
"classnames": "^2.2.6", "classnames": "^2.2.6",
"codecov": "^3.8.1", "codecov": "^3.8.1",
@ -53,7 +55,7 @@
"gatsby-plugin-offline": "^3.3.3", "gatsby-plugin-offline": "^3.3.3",
"gatsby-plugin-optimize-svgs": "^1.0.4", "gatsby-plugin-optimize-svgs": "^1.0.4",
"gatsby-plugin-react-helmet": "^3.3.14", "gatsby-plugin-react-helmet": "^3.3.14",
"gatsby-plugin-sass": "^2.4.2", "gatsby-plugin-sass": "^2.3.22",
"gatsby-plugin-sharp": "^2.7.1", "gatsby-plugin-sharp": "^2.7.1",
"gatsby-plugin-sitemap": "^2.5.1", "gatsby-plugin-sitemap": "^2.5.1",
"gatsby-remark-autolink-headers": "^2.4.1", "gatsby-remark-autolink-headers": "^2.4.1",

View File

@ -2060,6 +2060,89 @@
prop-types "^15.6.1" prop-types "^15.6.1"
react-lifecycles-compat "^3.0.4" react-lifecycles-compat "^3.0.4"
"@sentry/browser@5.27.4":
version "5.27.4"
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-5.27.4.tgz#241dedc7d82d3ed2769bfc8e4fb193d10e6a1d4d"
integrity sha512-L8Fsnkl3PIak4zJ1pcGDmV92XTQjS2/H6EBgp1rhuOF4OE3L59K8RR73C9w+wVtsIi7nyfYg/FIe8lvG++3Mow==
dependencies:
"@sentry/core" "5.27.4"
"@sentry/types" "5.27.4"
"@sentry/utils" "5.27.4"
tslib "^1.9.3"
"@sentry/core@5.27.4":
version "5.27.4"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-5.27.4.tgz#4155ee09ee4deed7364918094bf81654dcf681c0"
integrity sha512-IbI37cIZU/qBQouuUXaLbGF/9xYFp5STqmj1Gv64l0IZe4JnEp06V3yD5GxQ/mJ78vSfOqfwLooVCUw9FA61sQ==
dependencies:
"@sentry/hub" "5.27.4"
"@sentry/minimal" "5.27.4"
"@sentry/types" "5.27.4"
"@sentry/utils" "5.27.4"
tslib "^1.9.3"
"@sentry/gatsby@^5.27.4":
version "5.27.4"
resolved "https://registry.yarnpkg.com/@sentry/gatsby/-/gatsby-5.27.4.tgz#3f0d2a1fcfeb025e18cca18d638acf8ba3f5f054"
integrity sha512-MqjCPGDEUl6JmLwQzTwplWK5p1ZEjkiGBt674pNFJglCrb/okmmAG/gNZvuc6qwS5EpUNMJHV3BDK5DqM+baew==
dependencies:
"@sentry/react" "5.27.4"
"@sentry/tracing" "5.27.4"
"@sentry/hub@5.27.4":
version "5.27.4"
resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-5.27.4.tgz#15db6f504672edd70b793e4b3d370dca9cb2fef6"
integrity sha512-Ba1AqcjvSd2S+fpdXtXCrVXdrzq9E2Etb2eHUOkEYwSsq7StMOw7E8YHDPAo+to8zUbpMPz/Z9XGhFkyAbImGQ==
dependencies:
"@sentry/types" "5.27.4"
"@sentry/utils" "5.27.4"
tslib "^1.9.3"
"@sentry/minimal@5.27.4":
version "5.27.4"
resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-5.27.4.tgz#2b331ed43d5f8999606fe9f8bf26a85155e8286c"
integrity sha512-biw5YfIQwvDoaRhLarfeRQ6MJ9UJOoDTmu8Kgg18prJy4rtfDowNJP0OBs5XAsTk6SWAXiE3g7vqUJBXgs7BWA==
dependencies:
"@sentry/hub" "5.27.4"
"@sentry/types" "5.27.4"
tslib "^1.9.3"
"@sentry/react@5.27.4":
version "5.27.4"
resolved "https://registry.yarnpkg.com/@sentry/react/-/react-5.27.4.tgz#757983dda2b2c8782d4c3a73c85806bb21ec93ed"
integrity sha512-nRv/u2nP4cQMWu1Gybv7izIl2VwcM6s6P2hco9RlxrCJUpQIUuHRo4yWqDn+G1Xxdr511yY8p4JR+ESBaRGJFg==
dependencies:
"@sentry/browser" "5.27.4"
"@sentry/minimal" "5.27.4"
"@sentry/types" "5.27.4"
"@sentry/utils" "5.27.4"
hoist-non-react-statics "^3.3.2"
tslib "^1.9.3"
"@sentry/tracing@5.27.4", "@sentry/tracing@^5.27.4":
version "5.27.4"
resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-5.27.4.tgz#0f6b0ebfa90b9f5bf5bac1fcf0f196010dbdddac"
integrity sha512-f3nG8ozCdcbFOzsnBCZ8w+/WfoNiAd0Ctr643L0rsFbaSzPWxbPMe3LNVrWwFVo6mHacG3/2HYmJ3CYMiWyTKQ==
dependencies:
"@sentry/hub" "5.27.4"
"@sentry/minimal" "5.27.4"
"@sentry/types" "5.27.4"
"@sentry/utils" "5.27.4"
tslib "^1.9.3"
"@sentry/types@5.27.4":
version "5.27.4"
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-5.27.4.tgz#ba7cefae6f77bb39a0ac59aeba1bb23ce4ad5216"
integrity sha512-41h3c7tgtSS8UBmfvEckSr+7V7/IVOjt/EiydyOd6s0N18zSFfGY5HdA6g+eFtIJK3DhWkUHCHZNanD5IY5YCQ==
"@sentry/utils@5.27.4":
version "5.27.4"
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-5.27.4.tgz#d57ccd72a56e2f97e109d632957f6cd11806e992"
integrity sha512-shV1I/q+Tob3hUxRj11DfMhe9PNDiv85hUUoRloZGGwu275dMwpswb2uwgSmjc2Ao4pnMKVx8TL1hC3kGLVHTQ==
dependencies:
"@sentry/types" "5.27.4"
tslib "^1.9.3"
"@sideway/address@^4.1.0": "@sideway/address@^4.1.0":
version "4.1.0" version "4.1.0"
resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.0.tgz#0b301ada10ac4e0e3fa525c90615e0b61a72b78d" resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.0.tgz#0b301ada10ac4e0e3fa525c90615e0b61a72b78d"
@ -7828,10 +7911,10 @@ gatsby-plugin-react-helmet@^3.3.14:
dependencies: dependencies:
"@babel/runtime" "^7.11.2" "@babel/runtime" "^7.11.2"
gatsby-plugin-sass@^2.4.2: gatsby-plugin-sass@^2.3.22:
version "2.4.2" version "2.5.1"
resolved "https://registry.yarnpkg.com/gatsby-plugin-sass/-/gatsby-plugin-sass-2.4.2.tgz#d5bdfc69b56c1f6b19eaf085c068607fc123e752" resolved "https://registry.yarnpkg.com/gatsby-plugin-sass/-/gatsby-plugin-sass-2.5.1.tgz#e4de5c9b3239e466e6e7c73c2c7df115307489de"
integrity sha512-6DnB+sRoSTS/dpsk/r2rTEA40XanDhmHvk4Esv+flgS6zcZro4U6cc5ibR6tum/fdfdu8/T/RoPZgGLCm4e4sQ== integrity sha512-q9EpTBALoBa5kZRhTEEbYILRxBaoEdYTWnb5imRutl1DAxpeqyA9wZzF2mBMPESTB7F9+1GVAt4n4mhabPUy0Q==
dependencies: dependencies:
"@babel/runtime" "^7.11.2" "@babel/runtime" "^7.11.2"
sass-loader "^7.3.1" sass-loader "^7.3.1"