Skip to content
Permalink
Browse files

fix: 💩 🐴 remov netlify-identity-widget from site pages

  • Loading branch information
kitos committed Mar 22, 2020
1 parent a652566 commit 69461ca994a03daca08dad022dcec397a6a40937
Showing with 11 additions and 0 deletions.
  1. +11 −0 gatsby-node.js
@@ -1,4 +1,15 @@
const { fmImagesToRelative } = require('gatsby-remark-relative-images')
const webpack = require('webpack')

exports.onCreateWebpackConfig = ({ actions }) => {
actions.setWebpackConfig({
plugins: [
new webpack.IgnorePlugin({
resourceRegExp: /^netlify-identity-widget$/,
}),
],
})
}

exports.onCreateNode = ({ node }) => fmImagesToRelative(node)
exports.sourceNodes = require('./src/gatsby/source-nodes')

0 comments on commit 69461ca

Please sign in to comment.
You can’t perform that action at this time.